How to convert SSL Nginx cert to IIS cert

Share this post to your friends !
  • 1

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.

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

how-to-convert-ssl-nginx-cert-to-iis-cert How to convert SSL Nginx cert to IIS cert
Convert SSL nginx cert to iis 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.

Share this post to your friends !
  • 1
If you appreciate what we share in this blog, you can support us by:
  1. Stay connected to: Facebook | Twitter | Google Plus | YouTube
  2. Subscribe email to recieve new posts from us: Sign up now.
  3. Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
  4. Become a Supporter - Make a contribution via PayPal.
  5. Support us by purchasing Ribbon Lite Child theme being using on this website.

We are thankful for your support.

«« »»

Got something to say? Join the discussion

Please keep in mind that all comments are subject to our Comment Policy. Your email address will not be published.
This site uses Akismet to reduce spam. Learn how your comment data is processed.