Knowledge Base

How to install a PFX certificate on Microsoft IIS and binding it to a website?

How to install a PFX certificate on Microsoft IIS and binding it to a website?

Shape 

Overview: 

This knowledge base article provides step-by-step instructions to install a PFX (.pfx / .p12) certificate on a Windows server and bind it to a website in Internet Information Services (IIS) to enable HTTPS. 

Scope 

Applies to: 

  • Windows Server 2016 / 2019 / 2022 
  • IIS 10.x 
  • Certificates in PFX format containing: 
  • Public certificate 
  • Private key 
  • (Optional) Intermediate certificate chain 

Shape 

Prerequisites:

  • Local Administrator access to the Windows server 
  • IIS installed and configured 
  • PFX certificate file 
  • PFX password 
  • Website already created in IIS 
  • Port 443 open on firewall/load balancer

 

Shape Steps to install a PFX certificate in IIS platform:

 

Section 1: Install the PFX Certificate 

Step 1: Open IIS Manager 

  1. Log in to the Windows server 
  1. Open Server Manager 
  1. Navigate to 
    Tools Internet Information Services (IIS) Manager 

Shape 

Step 2: Import the PFX Certificate 

  1. In IIS Manager, select the server name (top of left pane) 
  1. Double-click Server Certificates 
  1. Click Import in the right-hand Actions pane 
  1. Configure: 
  • Certificate File: Browse to the .pfx file 
  • Password: Enter PFX password 
  • Select “Allow this certificate to be exported” (recommended) 
  1. Click OK 

 The certificate should now appear in the Server Certificates list. 

Shape 

Section 2: Bind Certificate to IIS Website 

 

Step 1: Open Site Bindings 

  1. In IIS Manager, expand Sites 
  1. Select the target website 
  1. Click Bindingsin the Actions pane 

Shape 

Step 2: Add or Edit HTTPS Binding 

  1. Click Add (or Editif HTTPS already exists) 
  1. Configure: 
  • Type: https 
  • IP Address: All Unassigned (or specific IP if required) 
  • Port: 443 
  • Host name: 
  • Leave blank for default 
  • Enter FQDN if using SNI 
  • SSL Certificate: Select the imported certificate 
  1. Click OK 
  1. Click Close 

Shape 

Section 3: Verify Certificate Installation 

 

Browser Verification 

  1. Open a browser 
  1. Navigate to: 
  1. https://yourdomain.com 
  1. Confirm: 
  • No certificate warnings 
  • Correct CN/SAN 
  • Valid expiration date 
  • Trusted certificate chain 

Shape 

Windows Verification 

  1. Open MMC 
  1. Add Certificates Computer Account 
  1. Navigate to: 
  1. Personal Certificates 
  1. Confirm the certificate shows: 
  • Private key icon 
  • “You have a private key that corresponds to this certificate” 

Shape 

Section 4: Troubleshooting 

 

Issue 

Resolution 

Certificate not visible in IIS 

Ensure PFX includes private key 

HTTPS binding fails 

Confirm port 443 is free 

Browser shows untrusted 

Install intermediate certificates 

Wrong certificate used 

Check SNI and hostname 

“No private key” error 

Re-import PFX correctly 

Shape 

Best Practices 

  • Always include SANs for all hostnames 
  • Use 2048-bit RSA or ECDSA certificates 
  • Keep a secure backup of PFX files 
  • Renew certificates before expiration 
  • Use SNI for multi-site servers 

Shape 

Security Notes 

  • Protect PFX files with strong passwords 
  • Delete PFX files after installation 
  • Restrict access to certificate private keys 




 

Related Articles:  How to Add a Cross-Sign Certificate to the Chain on Windows Platform (IIS)

Tags:

Need assistance?

Contact our team for help with your purchase or issuing your certificate.

Live chat

Call us today