'How do I setup SSL with NGINX using cer and pfx file

I have configured the below file based on the knowledge I gathered after going through various forums, however I do not know from where to get the .crt and .key file. All I have is a cer and pfx file. I want to access the website using https.

enter image description here



Solution 1:[1]

*.cer is your public key for ssl_certificate and *.pfx is your private + public key, you need private key for ssl_certificate_key directive, first you need to convert both of your files to PEM format to be able to use with nginx.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user973254