I have two files.

  1. File whose contents start with -----BEGIN CERTIFICATE REQUEST-----

  2. File whose contents start with -----BEGIN PRIVATE KEY-----

How do I use these two files to create a SSL for a given website in IIS 8/Windows Server 2012 R2

I have tried a few suggestions like useing OpenSSl and running this command:

openssl pkcs12 -export -out lcertificate.pfx -inkey private.key -in cert.crt -certfile CACert.crt

But I get an error : unable to load certificates

What am I doing wrong or is there a better way to install SSL certificates for IIS 8 Website using those two files.

migrated from security.stackexchange.com Aug 28 at 6:55

This question came from our site for information security professionals.

  • use a certbot by lets encrypt? – Vipul Nair Aug 27 at 19:18
  • 4
    This is not on-topic for this site, but the answer is you can't. The first file is a certificate request file, not a certificate. You need the file with the certificate that has the public key that is paired with your private key file. – Xander Aug 27 at 19:27
  • sorry, I am a total noob to SSL. so certbot is a tool that will help me create a .pfx file using the above mentioned files? – Harobed Aug 27 at 19:29
  • @VipulNair There is no certbot for Windows. – Xander Aug 27 at 20:08
  • ohh sorry then didnt know that. – Vipul Nair Aug 27 at 20:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.