SystemMen - This article will guide you how to convert SSL nginx cert to iis cert.
Nginx cert and IIS cert
Just like converting nginx cert to cert tomcat. Nginx uses the ssl format X.509 format, IIS uses the ssl format PFX format.
Recommended Reading: How to convert SSL Nginx cert to Tomcat cert
You need to convert ssl cert from X.509 format to iis so you can use it on IIS web server (running on Windows).
Steps to convert X.509 cert into PFX cert
In order to successfully convert to .pfx cert, you need 2 files as follows:
- File server cert: STAR_domain.CERT.crt
- Private key file: STAR_domain.PRIVATE.key
The file name may differ depending on the cert provider.
Next, run this command to convert X.509 cert to the .pfx cert. It will be easier if you run the command on a Linux machine because it has OpenSSL available.
$ openssl pkcs12 -export -out domain.pfx -inkey STAR_domain.PRIVATE.key -in STAR_domain.CERT.crt
It will ask you to set an export password. Here, I set it to danie.
Basically, you have finished converting the ssl cert to the .pfx format for the IIS web server.
You can now run the following command to verify the information of the pfx cert.
$ openssl pkcs12 -info -in domain.pfx
With a simple command, you successfully converted the X.509 ssl cert to the PFX format of the IIS web server. Just a small tip, hope it useful for you.If you liked this article, then please subscribe to our YouTube Channel for more video tutorials. You can also find us on Twitter and Facebook.
If you appreciate what we share in this blog, you can support us by:
- Stay connected to: Facebook | Twitter | Google Plus | YouTube
- Subscribe email to recieve new posts from us: Sign up now.
- Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
- Become a Supporter - Make a contribution via PayPal.
- Support us by purchasing Ribbon Lite Child theme being using on this website.
We are thankful for your support.