I work at a place where the CA and all certificates are initially provided in .pfx format. I am able to successfully convert the pfx to key/pem or key/crt depending on my need. When testing this week, I discovered that the conversion process doesn't bring over the SANs that are on the certificates. Is there a way to accomplish this without having to manually configure a config file that includes the SANs? Here is what I'm doing now to convert from pfx:
openssl pkcs12 -in <pfx> -out <key> -nocerts -nodes
openssl rsa -in <key> -out <key>
openssl pkcs12 -in <pfx> -out <pem> -nokeys -clcerts