Install SSL for a site in IIS 8 when you have a certificate.txt file and private key file

0

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.

Harobed

Posted 2019-08-27T19:15:49.373

Reputation: 1

use a certbot by lets encrypt? – None – 2019-08-27T19:18:59.073

4This 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 – 2019-08-27T19:27:46.773

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 – 2019-08-27T19:29:30.513

@VipulNair There is no certbot for Windows. – Xander – 2019-08-27T20:08:40.740

ohh sorry then didnt know that. – None – 2019-08-27T20:15:30.917

No answers