Is PKCS#12 key stores quantum safe?

The sources listed on this page do not classify PKCS#12 as quantum safe or unsafe as a format. Its protection depends on the symmetric and key derivation parts, which NIST says current AES key sizes can keep, and on the public-key algorithms that wrap or sign its contents, which NIST IR 8547 schedules for replacement.

On this page

Is PKCS#12 key store quantum safe, and what do NIST and NCSC say?

If you hold .p12 or .pfx bundles and need a citable answer on whether they are quantum safe, start with the sources. RFC 7292 defines the PKCS #12 format, and RFC 9579 updates it for password-based MAC protection. NIST IR 8547 and the UK NCSC timeline set replacement dates for the public-key algorithms that such bundles depend on, such as the key establishment and signature schemes used to protect or sign their contents. Neither NIST nor the NCSC, and neither RFC, labels the PKCS #12 format itself as quantum safe or quantum vulnerable. The answer depends on which protection modes a given bundle uses and what public-key algorithms are inside it.

The question matters most to security engineers, PKI and certificate owners, and compliance leads who hold private keys and certificates in these bundles and must show how long that data stays secret. RFC 7292 describes a password privacy mode with symmetric encryption, and a public-key privacy mode that wraps the content key with RSA, so a bundle's exposure depends on its mode. The NCSC asks organizations to record the data they hold, its expected lifetime, and its value to an adversary. Apply that to every .p12 and .pfx file: which keys are inside, how long they must remain confidential, and which public-key algorithm protects them. Confirm the settings your tools actually use, since the OpenSSL 3.5 defaults differ between normal and -legacy mode.

What each body has published about PKCS#12 and quantum attack

This table lists what each standards body, government agency and vendor document says about PKCS#12 or its parts, and the dates they set. Read it to see which sources address the format directly and which address only the algorithms it can use. No listed body classifies PKCS#12 as quantum safe.

BodyDocument and dateWhat it says about PKCS#12 or its partsDates it sets
IETFRFC 7292, July 2014Defines PKCS #12 v1.1 with password and public-key privacy modes, and password and public-key integrity modes. Uses RSA for the content key in public-key privacy mode.None set
IETFRFC 9579, May 2024Updates RFC 7292 to permit PBMAC1 with more modern password-based key derivation. Says integrity computation is otherwise unchanged.None set
OpenSSL projectopenssl pkcs12 documentation, OpenSSL 3.5Documents the default AES-256-CBC with PBKDF2 encryption, the iteration count of 2048, the PBMAC1 option, and the legacy 3DES default. Does not address quantum attacks.None set
NISTFIPS 203, FIPS 204, FIPS 205, 13 August 2024Specifies ML-KEM for key establishment, ML-DSA and SLH-DSA for signatures. Does not address the PKCS #12 container format.Published 13 August 2024
NISTPost-quantum FAQ, page read 4 December 2026Says AES 128, 192 and 256 can continue in current applications, and that Grover's algorithm offers little advantage against AES. Says less than 112 bits of classical security should not be used.None set
NISTIR 8547 initial public draft, 12 November 2024Describes the transition from quantum-vulnerable signature and key-establishment algorithms. Obsoleted by the final version.Draft published 12 November 2024
NISTIR 8547 final, 27 October 2026Sets NIST's transition approach for post-quantum signature and key-establishment algorithms. Supports Executive Order 14412 and OMB Memorandum M-26-15.Final dated 27 October 2026
UK NCSCPQC migration timelines, 20 March 2025Asks organizations to record data held, its lifetime and value, and how it is protected at rest. Does not name PKCS#12.2028 discovery and plan, 2031 priority migration, 2035 complete migration

Why the answer depends on which PKCS#12 mode you use

The answer to whether a PKCS#12 key store is quantum safe depends on which protection mode the file uses, because PKCS#12 is not one mechanism. RFC 7292 defines a password privacy mode, in which the personal information is encrypted with a symmetric key derived from a user name and a privacy password, and a password integrity mode, in which a MAC is derived from a secret integrity password. Both of these protect the contents with symmetric cryptography and password-based key derivation rather than with public-key algorithms. Where a file is protected this way, the questions that matter are the strength of the symmetric cipher, the length and quality of the password, and the key derivation function, which are the same questions covered under symmetric encryption and key derivation. Confirm which cipher and key derivation function your tooling actually writes, since OpenSSL 3.5 defaults to AES-256-CBC with PBKDF2 and documents a 3DES default under its legacy provider.

The public-key modes are different. RFC 7292 defines a public-key privacy mode, in which the content key is enveloped to the destination platform's public encryption key using RSA, and a public-key integrity mode, in which the contents are signed with the source platform's private signature key. These uses depend on public-key algorithms, so they fall within the scope of the public-key guidance. NIST IR 8547 describes the move from quantum-vulnerable digital signature and key-establishment algorithms to post-quantum ones, and the UK NCSC timeline asks organizations to record the data they hold, its expected lifetime and how it is protected at rest. For a PKCS#12 file that carries an RSA-enveloped content key, the practical step is to identify which bundles use public-key privacy or signed integrity, how long their contents must remain secret, and whether a post-quantum replacement such as ML-KEM or ML-DSA is available in the tools that create and read them.

RFC 9579 adds PBMAC1 to PKCS#12 and says it permits more modern password-based key derivation functions, while noting that it does not otherwise change how integrity protection is computed. OpenSSL exposes this through the -pbmac1_pbkdf2 option. Before deciding anything, confirm with your own tooling and its documentation which modes and options your PKCS#12 files actually use, rather than assuming from the file extension.

Where PKCS#12 key stores are relied on and what the sources say about each

PKCS#12 bundles are used across web servers, client authentication, device migration, code signing and key backup. Each use relies on a different RFC 7292 protection mode, so the quantum question depends on which mode protects the bundle and what the sources say about its key derivation and public-key parts.

Web server and TLS certificate bundles

Servers often receive a certificate and private key together as a .pfx or .p12 file. The bundle is typically protected with the password privacy mode and a password-based MAC, so the quantum question turns on the key derivation function and the symmetric cipher. RFC 9579 says PBMAC1 permits more modern password-based key derivation functions and cites concerns with the RFC 7292 derivation. Check which MAC and PBKDF your server tooling writes, and whether the bundle's key material also has to be reissued as part of a wider TLS migration.

RFC 9579

Client certificate and smart card import

Client certificates for sign-in and smart card workflows are often imported from PKCS#12 files that hold a private key. These imports usually depend on the password privacy mode for the key and the integrity mode for the MAC. Because the private key is the sensitive part, confirm which encryption algorithm your import tooling applies to the key bag and whether legacy defaults such as 3DES are still accepted in your environment.

OpenSSL pkcs12 docs

Key and certificate transfer between platforms

PKCS#12 is designed as a transfer syntax, so it is often used to move identities between platforms. RFC 7292 defines a public-key privacy mode that envelopes content for a destination's public key using RSA, which is where public-key algorithm choices matter. A transfer bundle is only as protected as its least-protected mode, so identify whether a transfer uses password privacy, public-key privacy or both, and record which RSA key sizes the destination expects.

RFC 7292

Code signing and document signing bundles

Code signing and document signing tools frequently store the signing certificate and private key in a PKCS#12 file. Integrity for these bundles may use the public-key integrity mode, which relies on a digital signature made with the source platform's private signature key. The sources do not say how a given code signing toolchain handles this mode, so confirm the signature algorithm your toolchain writes and check it against the post-quantum signature standards NIST published in August 2024.

FIPS 204

Private key backups in key management workflows

Key management workflows often export private keys into PKCS#12 files for backup or escrow. These backups can remain stored for long periods, which matters because the UK NCSC asks organizations to record the expected lifetime and value of data they hold. Note where each backup is kept, how its password is managed, and when it must be reprotected or retired as your migration plan progresses.

NCSC timelines

What the sources say about PKCS#12 bundles that must stay confidential for years

Whether a stored .p12 file is exposed to a future quantum attack depends less on the PKCS#12 container itself than on the protection mode it was created with. RFC 7292 defines password privacy mode, where the contents are encrypted with a symmetric key derived from a user name and a privacy password, and public-key privacy mode, where the contents are enveloped to a recipient's public key with the content key encrypted under RSA. The sources treat these modes differently, so the first step for any bundle that must stay confidential for years is to find out which mode each file used. For password privacy, the symmetric cipher is a separate question from the key derivation, and NIST's FAQ says AES at 128, 192 or 256 bits can continue in use, so the relevant concern is the encrypted-envelope key wrapping rather than the bulk cipher. For public-key privacy, the RSA key transport is the component the NCSC timeline would place in discovery and migration scope.

The NCSC's discovery guidance gives a practical method for scoping this work. Its timeline says discovery should record "the data you hold," including "its expected lifetime and its value to an adversary," and how that data is protected in transit and at rest. Applied to PKCS#12, this means listing each .p12 store, the length of time its contents must stay secret, and the privacy and integrity modes recorded in each file. OpenSSL's 3.5 openssl pkcs12 documentation lists AES-256-CBC with PBKDF2 as the default encryption and -pbmac1_pbkdf2 for MAC protection, and says that -legacy changes the default private key encryption to 3DES_CBC. Stores created with -legacy, or by older tools, should be flagged for review because their protection mode may differ from the current default. Confirm the exact defaults for the OpenSSL build you run, since those defaults belong to that release.

RFC 9579 updates RFC 7292 to permit PBMAC1 for integrity protection and notes that the PKCS #12-specific key derivation function has security concerns, while leaving the integrity computation otherwise unchanged. For bundles that must stay confidential for years, the practical checks are to confirm the protection mode in each file, to note whether a file uses the legacy key derivation or 3DES defaults, and to plan the migration of any public-key wrapping to the algorithms in NIST FIPS 203, FIPS 204 and FIPS 205 as your PKI and tooling support them. The sources do not say which PKCS#12 tools or libraries support those algorithms, so confirm this with your vendor or library documentation before you plan a change.

What the guidance says to use instead, with the dates that apply

NIST FIPS 203, Module-Lattice-Based Key-Encapsulation Mechanism Standard, published 13 August 2024, defines ML-KEM, a method for two parties to agree on a shared secret key over a public channel. It is the replacement the sources name for the key-establishment role that RSA-based key transport plays in many systems. A PKCS #12 file does not perform key establishment itself, so ML-KEM matters for the systems that exchange or unwrap the keys before they are stored in the bundle.

  • Document and date: FIPS 203, published 13 August 2024.
  • Migration deadline in NIST IR 8547: the final version, dated 27 October 2026, describes NIST's approach to moving to post-quantum key-establishment algorithms. Confirm the specific phase-out dates in that document for your use case.
  • NCSC milestones: by 2028 complete discovery and create an initial migration plan, by 2031 complete the highest priority migration activities, and by 2035 complete migration to PQC.
  • Scope of the change: ML-KEM replaces the key-establishment step, not the file format.
  • Inventory first: record where bundles are created, transported and imported, since the replacement applies there.

Confirm with your library and HSM vendors whether they support ML-KEM for the versions you run, and check the standards text rather than assuming compatibility.

What to do with PKCS#12 key stores, in order

This sequence gives you a complete picture of where PKCS#12 bundles live in your estate, which algorithms and modes each one uses, and which migration dates apply to your sector. It ends with a written vendor position and a dated record that auditors and customers can review.

  1. Find every PKCS#12 file and tool

    Search your file shares, backups, build artifacts, container images, deployment repositories and certificate stores for files ending in .p12 and .pfx. Then list every tool, script and service that creates or reads them, including OpenSSL commands, Java keystore utilities, web servers and CI pipelines. The step is complete when you have a single inventory with a file location or tool name, an owner and a note on whether each item is still in use. Treat the inventory as the input for every later step, since a bundle you miss here will not be checked later.

  2. Check the mode and algorithms of each bundle

    For each file, record whether it uses password privacy, public-key privacy, password integrity or public-key integrity, as RFC 7292 defines these modes. Then check the algorithms: the OpenSSL 3.5 openssl pkcs12 documentation gives AES-256-CBC with PBKDF2 as the default encryption and 2048 iterations for both the encryption key and the MAC, and -pbmac1_pbkdf2 selects PBMAC1 with PBKDF2 for MAC protection. Also note that when the -legacy option loads the legacy provider, the default private key encryption becomes 3DES_CBC, so any bundle created that way needs its own entry. The output is a table with one row per bundle showing mode, encryption algorithm, MAC method and creating tool.

  3. Read the NIST and NCSC dates for your sector

    Read NIST IR 8547, the final version dated 27 October 2026, which describes NIST's approach to moving from quantum-vulnerable cryptography to post-quantum signature and key-establishment algorithms. For UK organizations, read the NCSC migration timeline published 20 March 2025, which sets milestones for completing discovery and an initial plan by 2028, the highest-priority migration by 2031, and full migration by 2035. Confirm with your regulator or sector body which of these apply to you, because the sources listed here do not say how each sector is bound. The output is a short note listing the dates that apply and the source for each.

  4. Ask each vendor in writing for its position

    For each product in your inventory that creates or reads PKCS#12 bundles, send the vendor a written question asking which PFX modes, key derivation functions and MAC methods it supports, whether it supports PBMAC1 as described in RFC 9579, and when it plans to support post-quantum signature and key-establishment algorithms. Ask for the version and edition each answer applies to. Vendors that have published nothing on a point should say so in writing. The step is complete when every vendor has replied or you have recorded the date you last followed up, and each answer is filed against the product and version it covers.

  5. Record findings and the plan for auditors

    Write up the inventory, the bundle settings, the dates that apply, and the vendor answers in one dated record. For each gap, state the action, the owner and the evidence that will show it is closed, such as a configuration change, a re-issued bundle or an upgrade confirmed by the vendor. Keep the record in a form your auditors and customers can review, and update it when vendors reply or your configuration changes. DeployOpen can help plan and implement the configuration and migration work for self-hosted platforms in your infrastructure, scoped and agreed in writing before work starts, but the record itself is your organization's to own and an independent auditor or certification body is the party that assesses it.

Claims readers meet about PKCS#12 and quantum attack, and what the sources say

Readers often arrive with a quick conclusion about PKCS#12 and quantum computers, in either direction. The cards below set out the common claims and what NIST, the IETF and OpenSSL documentation actually say, so each can be checked against the source before it shapes a decision.

AES in PKCS#12 is broken by quantum computers

This claim treats the symmetric cipher inside a PKCS#12 file as the weak point. NIST's post-quantum FAQ says that it is quite likely Grover's algorithm will provide little or no advantage in attacking AES, that AES 128 will remain secure for decades to come, and that current applications can continue to use AES with key sizes 128, 192, or 256 bits. The default in OpenSSL 3.5 is AES-256-CBC, so the cipher is not the item to replace. Check which algorithm your files actually use.

NIST PQC FAQ

A bigger PKCS#12 password fixes it

A longer password does not change the public-key or signature parts that NIST schedules for replacement. The guidance on symmetric algorithms concerns cipher and key length, while PKCS#12 protection also depends on how the key is derived from the password and on the MAC. NIST's FAQ says anything with less than 112 bits of classical security should not be used, which is a property of the algorithm, not the length of a password. Password strength is worth setting, but it is a separate control from quantum migration.

NIST PQC FAQ

PKCS#12 is quantum safe because it uses AES

Using AES does not settle the question, because a PKCS#12 bundle can also carry public-key material. RFC 7292 defines a public-key privacy mode that envelopes content with an RSA-encrypted content key, and a public-key integrity mode that uses a signature made with a private signature key. Those public-key parts are the ones the post-quantum transition targets. Check whether your files use password-based protection only or also use the public-key modes.

RFC 7292

RFC 9579 changes PKCS#12 quantum exposure

RFC 9579, published May 2024 as an Informational document, describes PBMAC1 for PKCS #12 integrity and updates RFCs 7292 and 8018. It permits more modern password-based key derivation functions and notes security concerns with the RFC 7292 key derivation function. It does not change how integrity protection is computed apart from that key derivation change, and it does not address post-quantum algorithms. Treat it as a modernization of password handling, not a quantum fix.

RFC 9579

NIST IR 8547 sets the replacement scope

NIST IR 8547, in its final version dated 27 October 2026, describes the move from quantum-vulnerable digital signature and key-establishment algorithms to post-quantum standards. The initial public draft was published 12 November 2024. Its scope is the public-key algorithms, not symmetric ciphers. Use it to identify which PKCS#12 public-key uses need a replacement plan, and confirm with your own key and certificate inventory.

NIST IR 8547

Questions people search about PKCS#12 and quantum attack

Does a larger key make PKCS#12 quantum safe?

Not by itself. PKCS#12 is a transfer format that wraps private keys, certificates and secrets, so its safety depends on the algorithms inside it. RFC 7292 describes a password privacy mode that uses a symmetric key derived from a password, and NIST's post-quantum FAQ says current applications can continue to use AES with 128, 192 or 256 bit keys. A larger symmetric key therefore helps with the bulk encryption inside the bundle. The part that matters for quantum resistance is the public-key material the bundle contains, such as RSA or elliptic curve private keys, and the public-key mode in RFC 7292 uses RSA to envelope the content key. Growing an RSA key does not turn that into a post-quantum scheme. Confirm which algorithm protects each object in your bundle before deciding whether a key size change is enough.

Must we replace PKCS#12 key stores now?

The published sources do not require you to replace the PKCS#12 format on a fixed date. NIST IR 8547 describes the transition from quantum-vulnerable public-key algorithms to post-quantum signature and key-establishment algorithms, and the UK NCSC timeline sets 2028 for a discovery and assessment phase, 2031 for highest priority migration and 2035 for completing migration. The NCSC asks you to record the data you hold, its expected lifetime and its value to an adversary, and how it is protected at rest. A bundle holding long-lived keys is therefore a candidate for assessment now, while a short-lived bundle may follow a later phase. Work out, from the lifetime of the secrets in each store, which bundles need attention first.

What replaces PKCS#12 for quantum safe key storage?

The sources do not name a single replacement format for PKCS#12. What they do publish is the set of post-quantum algorithms that would sit inside a store: FIPS 203 specifies ML-KEM for key establishment, FIPS 204 specifies ML-DSA for digital signatures, and FIPS 205 specifies SLH-DSA, also a signature algorithm. A key store is a container, so the practical question is whether your PKCS#12 tooling and the certificate authorities you rely on can carry these algorithms, and whether the password protection still meets the 112 bit classical security floor that NIST's FAQ gives. Check the vendor documentation for your toolkit before assuming a particular container will support a post-quantum key.

Are our stored PKCS#12 bundles at risk today?

The published guidance does not say that stored bundles are compromised today, and nothing in the sources reports a practical attack on PKCS#12 files. The concern is harvest-now, decrypt-later: a bundle captured now could be opened once quantum computers can break the public-key parts. The risk therefore depends on how long the secrets inside must stay confidential and on what protects the bundle at rest. The password privacy mode in RFC 7292 protects content with a symmetric key derived from a password, so the strength of that password and the iteration count matter. OpenSSL 3.5 defaults to AES-256-CBC with PBKDF2 and 2048 iterations. Review the iteration count and password policy for bundles you expect to keep for many years.

Does PBMAC1 change the quantum safety of PKCS#12?

PBMAC1 changes how the integrity MAC is derived, but it does not change the public-key parts of the bundle. RFC 9579, published in May 2024 as an Informational document, describes using PBMAC1 in PKCS #12 and says it permits more modern password-based key derivation functions than the PKCS #12-specific one in RFC 7292. It also says that apart from the key derivation change, it does not change how integrity protection is computed. OpenSSL 3.5 selects PBMAC1 with PBKDF2 through the -pbmac1_pbkdf2 option. Treat PBMAC1 as a better password derivation step and confirm with your vendor which algorithms still protect the private keys inside the bundle.

What should we ask a vendor about PKCS#12 and post-quantum support?

Ask which PKCS#12 features and algorithms the product supports, and whether it can create and read bundles containing ML-KEM, ML-DSA or SLH-DSA keys under the NIST FIPS 203, 204 and 205 standards. Ask whether it uses PBMAC1 and which key derivation function and iteration count it defaults to. Ask whether the legacy mode is enabled, since OpenSSL's -legacy option defaults the private key encryption to 3DES_CBC. Ask for the version and configuration each answer applies to, and for the migration timeline they have published, measured against the NCSC milestones of 2028, 2031 and 2035. Get written answers for the specific version you run.

Dates the guidance sets for PKCS#12 migration

The diagram places the published milestones on one timeline, starting with FIPS 203, 204 and 205 on 13 August 2024, which define the post-quantum algorithms. It then runs through the NIST IR 8547 draft on 12 November 2024 and its final version on 27 October 2026, followed by the NCSC milestones of 2028, 2031 and 2035. Check each date against the document named on its node, and confirm the scope of each guidance document for your own systems before planning PKCS#12 work.

Published post-quantum milestones from NIST and the UK NCSC, in date order.

How DeployOpen works on this

DeployOpen approaches the question of whether PKCS#12 key stores are quantum safe by first separating the PKCS#12 container from the algorithms inside it. We inventory the .p12 and .pfx files in your estate, record the encryption, MAC and key derivation settings each one uses, and map them against the NIST and NCSC guidance your organization follows.

How we scope

  • Inventory where PKCS#12 bundles are created, stored, exported and imported across your systems and teams
  • Record the PBE algorithm, MAC mode, iteration counts and any legacy provider use per bundle type
  • Agree the written scope, deliverables and timeline with you before any work starts, as a fixed-scope engagement

How we build

  • Test current PKCS#12 defaults in your OpenSSL and application builds, including the -legacy and -pbmac1_pbkdf2 options
  • Configure stronger encryption and MAC settings where your versions support them, and document each change
  • Plan PQC key and certificate issuance alongside existing PKCS#12 handling, confirming compatibility for the exact versions you run

How we hand over

  • Deliver a written report listing each PKCS#12 store, its current settings and the migration step recommended
  • Provide configuration files, scripts and runbooks so your engineers can repeat the changes in their own environment
  • Walk your security and platform teams through the findings and the evidence needed for internal or external review

How we support

  • Retest PKCS#12 handling after upgrades, new issuance workflows or changes to your key management setup
  • Keep the inventory current as new applications and certificate stores are added to your environment
  • Offer ongoing support as a retainer, covering upgrades, continuous testing and updates to the migration plan

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.