Recently I needed to convert SSL certificates between Windows (IIS/Cirtix Secure Gateway). I made a cheat sheet for myself and I’m sharing it here in hope that it will be useful.
To view certificate request:
openssl req -text -noout -in request.csr
To view certificate:
openssl x509 -noout -text -in [cert.pem | cert.cer]
To convert bundled certificate (one destined for Windows):
openssl pkcs7 -in bundled.cer -print_certs -out certificate.pem
To pack key and certificate into pfx for importing on Windows:
openssl pkcs12 -export -out certificate.pfx -inkey key.pem -in [cert.crt | cert.pem]