SSL certificate maximum validity is being reduced to 200 days from March 2026. Read more →
IIS / Windows Server Easy ~3 min. read

IIS 8–10: PFX Certificate Import

How to import an SSL certificate from a PFX file (PKCS#12) into IIS 8, 8.5, and 10 using MMC or certlm.msc. Covers Windows Server 2012 through 2025.

IIS 8–10: PFX Certificate Import

Overview

This guide demonstrates how to import an SSL certificate from a PFX file (PKCS#12) into IIS 8, 8.5, or 10. PFX files are used when the certificate was created via the FairSSL CSR service, exported from another server, or restored from a backup.

Supported versions

IIS VersionWindows Server
IIS 8.0Windows Server 2012
IIS 8.5Windows Server 2012 R2
IIS 10.0Windows Server 2016, 2019, 2022, 2025

Prerequisites

  • Administrator access to the server
  • A PFX file and its password (if using the FairSSL CSR service, this is received via SMS)

Method 1 – Import via MMC (All versions)

  1. Save the PFX file in a convenient location, such as the desktop.
  2. Press Windows + R, type mmc.exe and click OK.
  3. Select FileAdd/Remove Snap-in.
  4. Select Certificates, click Add, then select Computer accountLocal computer. Click Finish and then OK.
  5. Expand Certificates (Local Computer)Personal.
  6. Right-click PersonalAll TasksImport.
  7. Click Browse and change the file format filter to Personal Information Exchange (*.pfx;*.p12) in the bottom-right corner.
  8. Select your PFX file and click Open, then Next.
  9. Enter the PFX file password. Tick Mark this key as exportable if you want to be able to export the certificate again later.
  10. Select Automatically select the certificate store based on the type of certificate.
  11. Click Next and then Finish.

[Screenshot: MMC → Personal → All Tasks → Import → PFX]

Method 2 – Import via certlm.msc (Windows Server 2012+)

A quicker method for newer Windows Server versions:

  1. Press Windows + R, type certlm.msc and press Enter.
  2. Expand Personal and right-click on Certificates.
  3. Select All TasksImport.
  4. Follow the wizard: select the PFX file, enter the password, tick Mark this key as exportable and finish.

Method 3 – Import via PowerShell

$password = ConvertTo-SecureString -String "DitPassword" -AsPlainText -Force
Import-PfxCertificate -FilePath "C:\certifikat.pfx" -CertStoreLocation Cert:\LocalMachine\My -Password $password -Exportable

Assigning the certificate to a website

After the import is complete, the certificate must be bound to the relevant IIS website:

  1. Open IIS Manager (inetmgr).
  2. Select the website under Sites in the left-hand panel.
  3. Click Bindings in the right-hand panel.
  4. Click Add (or Edit for an existing HTTPS binding).
  5. Select Type: https, set Port: 443, and select the imported certificate from the SSL certificate dropdown.
  6. Click OK and then Close.

[Screenshot: IIS Manager → Site Bindings → Select imported certificate]

Troubleshooting

  • "The password is not correct": PFX passwords are case-sensitive. Verify that you are using the correct credentials.
  • The certificate appears in MMC but not in IIS Manager: Restart IIS using iisreset or ensure the certificate was imported into the Local Computer store (not Current User).
  • Key icon missing (certificate without private key): The PFX file was either corrupted or did not include the private key. Please use the original PFX file.

Strengthen your TLS security

Use IIS Crypto to easily configure secure TLS protocols and cipher suites on your Windows Server.

IIS Crypto TLS configuration guide

Ready to create a free account?

Create a free account and issue your first certificate in under 10 minutes.