✅ Pre-Requisites
-
A valid SSL Certificate (usually
.pfx
,.crt
, and.key
files from CA). -
IIS installed on the server.
-
Access to IIS Manager as an Administrator.
Step-by-Step SSL Installation Process in IIS
Step 1: Import the SSL Certificate to the Server
If you have a .pfx
file:
-
Open MMC (Microsoft Management Console) →
Run > mmc
-
Add Certificates snap-in (Local Computer).
-
Right-click Personal > Certificates → All Tasks → Import.
-
Browse and import the
.pfx
file. -
Enter the password for the private key and mark it as exportable.
-
Complete the wizard.
Step 2: Bind the Certificate in IIS
-
Open IIS Manager (
inetmgr
). -
Select the correct website under Sites (usually "Default Web Site" or your custom site).
-
In the Actions panel (right side), click on Bindings.
-
Click Add (or Edit if SSL already exists):
-
Type:
https
-
IP address:
All Unassigned
or specific IP -
Port:
443
-
SSL Certificate: Select the certificate you just imported
-
-
Click OK to save.
Step 3: Test the SSL Installation
-
Open a browser and visit:
https://yourdomain.com
-
Ensure no certificate errors show.
-
Use tools like SSL Labs (https://www.ssllabs.com/ssltest/) to verify the SSL installation and grade.
Optional Configurations (for security best practices)
Force HTTPS Redirect:
-
Select the website in IIS.
-
Open HTTP Redirect.
-
Enable "Redirect requests to this destination" → Enter
https://yourdomain.com
-
Check "Only redirect requests to content in this directory" and "Status code: 302 Found" (or 301 if permanent).
-
Or use URL Rewrite module to enforce HTTPS.
Disable Weak Protocols (Optional but Recommended):
-
Use IIS Crypto tool to disable SSL 2.0/3.0 and enable TLS 1.2/1.3.
-
Registry changes can also be made, but proceed cautiously.
Files Format Conversion (if needed)
-
Convert
.crt
and.key
to.pfx
using OpenSSL: