Create a pfx key file for Windows

For apache, we use certificate for *.mycompany.com. They are 3 files :

mycompany.com.crt
mycompany.com.csr
mycompany.com.key

But I need a different file if I want to use this certificate on Windows. Windows asks for only one PFX file. Here is the command I use on linux:

openssl pkcs12 -export -in mydomain.com.crt -inkey mydomain.com.key -out mydomain.com.pfx

Leave a Reply

Your email address will not be published. Required fields are marked *