Use below command:
openssl.exe pkcs12 -in _SSLCertificate-Chain.pfx -nokeys -out SSLCertificate-chain.crt
Use below command:
openssl.exe pkcs12 -in _SSLCertificate-Chain.pfx -nokeys -out SSLCertificate-chain.crt
Please use below command to extract the Key file without password
openssl rsa -in key.pem -out key_with_no_pw.key
Use below command to extract the PFX file using certificate Chain.
openssl pkcs12 -export -out SSLCertificate.pfx -inkey Certificate.key -in SSLCertificate.crt -in intermediateCA.crt -in rootCA.crt
openssl pkcs12 -export -out SSLCertificate.pfx -inkey Certificate.key -in SSLCertificate.crt
Use below command to extract Public Key from SSL Certificate PFX file
openssl pkcs12 -in SSLCertificate.pfx -nocerts -out SSLCertificate-chain.key
Use below command to in OPSNSSL command line to convert SSL Certificate PFS file to PEM/CRT file. Provide the pfx file password once it prompt.
openssl pkcs12 -in SSLCertificate.pfx -nokeys -out SSL CertificateChain.pem -nodes