PFX export SSL / TLS Origin: Network OSI layer 6 · Presentation Last updated 18 Nov 2026

Cannot export or import the certificate with its private key (PFX/PKCS#12 has no private key)

The .pfx file contains only the certificate, so servers that need the private key fail.

Exact message you may see The certificate does not have a private keyPFX does not contain a private keyYou have a private key that corresponds to this certificate is missingCannot export private key not marked exportablecertutil -repairstore my private key
Seen on: Windows OpenSSL SSL

Meaning

The key lives on the machine that generated the CSR. Export from that machine with "Yes, export the private key", or combine the CA-issued certificate with the original key (openssl pkcs12 -export -inkey private.key -in cert.pem -certfile chain.pem -out site.pfx). If the key is lost, reissue with a new CSR. On Windows, run certutil -repairstore my THUMBPRINT to relink.

Common causes

  • Certificate imported without the CSR machine's key
  • Exported without the private key option
  • Key marked non-exportable
  • Key lost or generated elsewhere
  • Wrong store/user context

⚡ Quick fix

  1. Export from the CSR machine including the key
  2. Build the PFX with openssl pkcs12 -export -inkey
  3. Reissue with a new CSR if the key is lost

Detailed fix by platform

Shell

  1. bash
    openssl pkcs12 -export -inkey private.key -in cert.pem -certfile chain.pem -out site.pfx
    certutil -repairstore my THUMBPRINT

How to diagnose

  1. Key — Available?
  2. Export option — Enabled?
  3. Store — Correct?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

.NET TLS — The request was aborted: Could not create SSL/TLS secure channel (.NET Framework TLS 1.2 not enabled) (SSL / TLS).NET TLS0x800CCC0D — Outlook error 0x800CCC0D: Cannot find the server — the host name of the mail server couldn't be resolved (Email / SMTP)0x800CCC0D0x800CCC0E — Outlook error 0x800CCC0E: Cannot connect to the outgoing (SMTP) server — sending failed (Email / SMTP)0x800CCC0E169.254.x.x self-assigned IP (DHCP failed) — Networking: IPv4 address 169.254.x.x (Autoconfiguration / APIPA) — the PC couldn't get an address from DHCP (Networking)169.254.x.x self-assi…450 — HTTP 450 Blocked by Windows Parental Controls (HTTP)450App Service — Azure App Service: custom domain SSL binding failed (certificate not found, thumbprint or hostname validation) (SSL / TLS)App Servicecertificate does not have a private key (IIS) — Windows/IIS: A specified logon session does not exist / The certificate does not have a private key associated with it (SSL / TLS)certificate does not …Could not establish trust relationship for the SSL/TLS secure channel — .NET: System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel (SSL / TLS)Could not establish t…PFX export

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.