Showing posts with label Certificate. Show all posts
Showing posts with label Certificate. Show all posts

Wednesday, January 18, 2017

How to create .pfx file

In order to use in IIS (version 8 ) https we need to import a certificate which has to be associated to https binding .

If you buy or get a free ssl certificate you can convert it to a pfx file like this :

openssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt

Openssl can be downloaded from here.

If you have a root CA or intermediate certificate you can append it by supplying multiple -in parameter:

openssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt -in intermediate.crt -in rootca.crt

Now that you have the pfx you can just import it in IIS 8 and use it .