.PFX file extension

To open .PFX files on Windows, import into Windows certificate store using PowerShell: run Import-PfxCertificate with the .pfx path and a target certificate store location (for example, CurrentUser or LocalMachine stores).

To open a .pfx file, you typically import it into a certificate store (common on Windows) or inspect/extract it with OpenSSL. Because .pfx files often include a private key, handle them like a sensitive credential and only open them if you trust the source.

Last updated: June 12, 2026

Open on your device

Choose your operating system for a dedicated step-by-step opening guide.

How to open .PFX files

Use these platform-specific instructions to open .PFX files safely.

Windows

  1. Import into Windows certificate store using PowerShell: run Import-PfxCertificate with the .pfx path and a target certificate store location (for example, CurrentUser or LocalMachine stores).
  2. If prompted, enter the .pfx password; after import, verify the certificate appears in the expected Windows certificate store.
Full Windows guide

Mac

  1. Use OpenSSL to inspect it: open Terminal and run: openssl pkcs12 -in file.pfx -info
  2. Enter the import password when prompted to view contained certificates/keys (do not paste private key output into logs).
Full Mac guide

Linux

  1. Inspect or extract with OpenSSL: openssl pkcs12 -in file.pfx -info
  2. If you need to export materials, use OpenSSL’s pkcs12 command options to output certificates and/or keys (keep exported private keys protected).
Full Linux guide

iOS

  1. iOS can receive .pfx as a certificate identity for installation, but the exact flow varies by deployment method; if you cannot install it safely, transfer the file to a desktop and inspect/import with Windows (Import-PfxCertificate) or OpenSSL.
Full iOS guide

Android

  1. Android can be used to install certificate identities in some scenarios, but if installation is not available or you need to inspect the contents, transfer the file to a desktop and use OpenSSL (openssl pkcs12) or Windows import.
Full Android guide

Security notes

  • .pfx/PKCS #12 files often contain a private key; anyone with the file and its password may be able to impersonate the identity (for example, a TLS server or client certificate). Store and transmit .pfx files as sensitive secrets.
  • Avoid exporting private keys from a .pfx unless necessary; extracted keys are easier to leak via logs, backups, or accidental sharing.
  • Only import a .pfx you trust. Importing a malicious or untrusted identity into your certificate store can enable unwanted trust relationships or credential misuse.

If you did not expect this file

This extension is usually plain data, text, or structured content—not a program by itself. The practical risk is social engineering (a scam attachment or misleading filename). For trusted senders you rarely need heavy-handed antivirus wording; use these tools when you want an extra check on unexpected downloads.

We may earn a commission when you use affiliate links. This supports our free file extension guides.

Can't open this file?

These are the most common causes and fixes when .PFX files fail to open.

Common reasons

  • Wrong password or import fails due to encryption/MAC verification
  • Certificate imports but private key is missing
  • Imported into the wrong Windows certificate store (app can’t find it)

Fix steps

  1. Confirm you have the correct .pfx password from the issuer/admin who generated the PKCS #12 file.
  2. Try inspecting with OpenSSL to see clearer error output: openssl pkcs12 -in file.pfx -info
  3. If you suspect corruption, re-export/regenerate the .pfx from the original system that produced it.

What is a .PFX file?

A .pfx file is a PKCS #12 container (also called PFX) defined by RFC 7292. It is an ASN.1-based structure designed to carry “personal information exchange” data such as certificates and private keys, commonly protected with a password. In practice, PKCS #12 files commonly use the .p12 or .pfx extensions.

Background

PKCS #12 (also known as PFX) is widely used to move certificates and their private keys between machines and applications in a single file. This is especially common for TLS/SSL server certificates, client authentication certificates, and code-signing identities when they need to be backed up or deployed elsewhere.

The format is standardized in RFC 7292, which specifies the container syntax and structure. Many tools treat “PFX” as the same thing as PKCS #12; the extension .p12 is also commonly used for the same container type.

On Windows, .pfx is commonly imported into the Windows certificate stores, where applications can use the certificates and keys without directly reading the file each time. On many platforms, OpenSSL is a common way to inspect contents or convert/export certificates and keys from a .pfx container.

Common MIME types: application/pkcs12

Known aliases: .p12

Further reading

Authoritative resources for more details on the .PFX format.

Common .PFX issues

Wrong password or import fails due to encryption/MAC verification

Many .pfx files are password-protected; if the password is wrong (or the file is corrupted), tools may fail to verify or decrypt the container contents.

  1. Confirm you have the correct .pfx password from the issuer/admin who generated the PKCS #12 file.
  2. Try inspecting with OpenSSL to see clearer error output: openssl pkcs12 -in file.pfx -info
  3. If you suspect corruption, re-export/regenerate the .pfx from the original system that produced it.

Certificate imports but private key is missing

A PKCS #12 container can hold certificates without a private key, or the private key may not be exportable/was not included when the file was created.

  1. Inspect with OpenSSL to confirm whether a private key is present: openssl pkcs12 -in file.pfx -info
  2. If no private key is included, request a new .pfx export that includes the private key (or obtain the key through the proper key management process).

Imported into the wrong Windows certificate store (app can’t find it)

On Windows, importing to the wrong store location (CurrentUser vs LocalMachine, or wrong logical store) can make applications unable to locate the certificate/key pair.

  1. Re-import using Import-PfxCertificate and choose the correct target store location for your application (for example, a LocalMachine store for services).
  2. After import, confirm the certificate appears in the intended store and that the private key is associated with it.

FAQ

Is .pfx the same as .p12?

In practice, yes: both extensions are commonly used for PKCS #12 containers. The standardized container format is PKCS #12 (PFX) as defined in RFC 7292.

What MIME type should be used for .pfx files?

The IANA-registered media type for PKCS #12 is application/pkcs12.

How can I see what’s inside a .pfx file?

Use OpenSSL’s pkcs12 command to inspect it, for example: openssl pkcs12 -in file.pfx -info. You will typically be prompted for the container password.

How do I import a .pfx on Windows for system use?

Use PowerShell’s Import-PfxCertificate to import into the appropriate Windows certificate store (for example, a LocalMachine store for services), providing the .pfx path and password as required.

Similar file extensions

Compare related formats in the same category to find the right tool faster.