I use a self-signed CA certificate to sign other certificates. For some certificates, I need to specify alternative object names. I can specify them during the generation of the request ( openssl req ... ), and I see them in the .csr file. Then I sign it with a CA certificate using
openssl x509 -req -extensions x509v3_config -days 365 -in ${name}.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out ${name}.crt
and the following sections in the openssl.cnf file:
[ x509 ] x509_extensions = x509v3_config [ x509v3_config ] copy_extensions = copy
but I do not see the SAN in the .crt file.
I know about solutions with the openssl ca ... command, but I don't have a valid [ca] section, and I don't want to copy / paste it without a deep understanding of what it does. So I hope there is another solution with the openssl x509 ... command.
source share