Convert x509/PEM SSL Certificate to PFX/P12 from Linux to Windows
Often when you’re working in heterogeneous environments you will be needing to convert the standard Linux format x509/PEM SSL certificate files to the Windows native PFX/p12 format, or vise-versa. The following OpenSSL commands are able to do just about every type of certificate conversion imaginable. DID YOU KNOW? “pem”, “cer”, and “crt” are all the same certificate formats called x509. The only difference is cosmetic via different extensions. A full certificate chain = public certificate + intermediate certificate + root certificate contained in a single file. OpenSSL Convert X509/PEM Convert PEM & Private Key to PFX/P12: openssl pkcs12 -export -out certificate.pfx