GnuPG legacy key types and versions in a post-quantum plan

GnuPG's Kyber (ML-KEM) support appears in the 2.5 series, while 2.4 has reached end-of-life, so older installs and RSA or ECC keys need inventory before a post-quantum plan can be set.

On this page

Which GnuPG versions and key types matter for a post-quantum plan

The first step is to know which GnuPG branch and which key types each machine runs. The 2.5 series introduced Kyber (ML-KEM) as a post-quantum encryption algorithm, announced in the 2.5.22 release dated 2026-08-31. Branch 2.4 reached end-of-life on 2026-06-30 and will receive no further updates, so any server or workstation still on 2.4 needs a planned upgrade to 2.5 or 2.6 before it can take post-quantum keys. Branch 2.2 reached end-of-life on 2024-12-31, and the legacy 1.4 release (1.4.23, dated 2018-06-11) predates all of this. System administrators should run gpg --version on every host and record the branch, then flag anything older than 2.5.

Next, inventory the keys themselves. Each key's algorithm can be listed with gpg --list-keys --with-colons or gpg --list-secret-keys, and the output shows whether the primary key and each subkey are RSA, ECC or Kyber-based. RSA and ECC keys are not post-quantum, and a Kyber encryption subkey can only be added to a key whose tooling supports it. The GnuPG manual says gpg --quick-generate-key accepts the algo values default, future-default and pqc, and that pqc yields a key with a quantum-resistant encryption subkey. The sources do not say whether these new key types will become the default for new keys, so the manual's current --default-new-key-algo value (RSA 2048 or 3072) should be treated as the setting in force until the vendor says otherwise. Confirm this with the GnuPG project and in your own test environment before changing any policy.

Security leads should ask administrators to report the branch, the key inventory and the owner of each key, since keys on servers, build hosts and personal workstations are often managed separately. Keys that protect long-lived archives or signing material deserve the earliest attention. Test any Kyber-capable key in a lab first, because the GnuPG 2.5.12 and 2.5.14 announcements both record fixes to Kyber and composite-algorithm handling, and older clients may not read the new keys.

GnuPG version lines and post-quantum support by branch

This table compares the GnuPG release branches listed on the download page as of 2026-12-04, with their status, end-of-life or LTS notes and whether the release announcements state Kyber (ML-KEM) support. Use it to find which installed versions cannot receive the post-quantum encryption features, then confirm each host's exact version with gpg --version. A branch that has reached end-of-life gets no further updates, so it should be upgraded before any post-quantum key plan depends on it.

BranchStatus and end-of-lifeKyber (ML-KEM) support statedSource
1.4Legacy release 1.4.23, dated 2018-06-11, listed as the legacy 1.4 release on the download pageNot stated in the sources on this pageGnuPG download page
2.2End of life on 2024-12-31 according to the download page, so no further updatesNot stated in the sources on this pageGnuPG download page
2.4End of life on 2026-06-30 according to the download page; the 2.5.22 announcement says 2.4 has reached end-of-life and gets no more updatesNot stated in the sources on this pageGnuPG 2.5.22 announcement
2.5Long Term Support, end-of-life date to be announced; current stable release 2.5.24, dated 2026-09-23Yes, introduced in the 2.5 series as Kyber (aka ML-KEM or FIPS-203) for PQC encryptionGnuPG 2.5.22 announcement
2.5.12 and later 2.5 fixesAdds Kyber variant selection in gpg --edit-key addkey and fixes a composite PQC and ECC regressionYes, Kyber variants selectable when adding subkeysGnuPG 2.5.12 announcement
2.5.14 and later 2.5 fixesAllows import and export of Kyber secret keys and protects Kyber keys in the agentYes, Kyber key handling extendedGnuPG 2.5.14 announcement
2.6Long Term Support, end-of-life date to be announced; the 2.5.22 announcement says it will not differ much from 2.4 apart from PQC supportStated only through the 2.5 series features; the sources do not list 2.6-specific PQC claimsGnuPG download page

How RSA, ECC and older key formats affect an inventory

An inventory of GnuPG legacy key types starts with the algorithm each key uses, because that determines what a post-quantum plan has to replace. The GnuPG manual's description of --default-new-key-algo, checked on 2026-12-04, gives the current default as rsa2048/cert,sign+rsa2048/encr, with rsa3072 as an available size. It names ed25519/cert,sign+cv25519/encr as the planned future default. The manual does not state that a post-quantum algorithm is the default for new keys. For each key in your estimate, record the primary key algorithm and the encryption subkey algorithm separately, since a key created with the older default can carry RSA or ECC in either position. Use gpg --list-keys --with-colons or gpg --list-secret-keys to read these values, and confirm the output format against your installed version.

Kyber keys are a separate category that the inventory has to classify on its own. The GnuPG manual's text for --export-secret-keys says Kyber keys are implemented as a composite key, and that a GNU-specific extension can be forced for all key types with --export-options=mode1003. Keys exported with that option are not interchangeable with standard exports, so a receiving system that does not understand the extension may fail to import them. Before you count Kyber keys as post-quantum in your records, check which export format your partners and key servers accept. Koch's May 2, 2024 post on the gnupg-devel list is a historical design note. It describes naming such as ky768 or ky1024 followed by a curve name, but it says the choice of curve to pair with ML-KEM-768 was still open and that it was not a published draft. Do not treat it as a list of the composites shipped in current releases. Verify the composites your installed version supports against that version's documentation.

Installed version is the last field to record, because support differs by branch. On 2026-12-04 the GnuPG download page listed 2.5.24 as the current stable release and 1.4.23 as the legacy 1.4 release. It gave end-of-life dates of 2024-12-31 for branch 2.2 and 2026-06-30 for branch 2.4, and listed branches 2.5 and 2.6 as Long Term Support with the end-of-life date to be announced. Any workstation or server on 2.2 or 2.4 needs an upgrade decision regardless of its key types, and the 2.5.22 announcement states that 2.4 has reached end-of-life and will receive no more updates. Record the output of gpg --version on every host and tag the key records with the host they came from, so that a later migration can tell which keys are on an unsupported branch.

Where legacy GnuPG versions and key types show up

Legacy GnuPG exposure is spread across four parts of the estate: the installed binaries, the keys already in keyrings, the SSH integration handled by gpg-agent, and the keyserver and dirmngr settings. Each one maps to a step in the inventory you will run before deciding what to upgrade, regenerate or retire.

Installed binary versions

Start by recording which GnuPG branch runs on each workstation and server, since the branch determines whether you can get post-quantum support at all. The download page on 2026-12-04 listed 2.5.24 as the current stable release and 1.4.23 as the legacy 1.4 release, with branch 2.2 ended on 2024-12-31 and branch 2.4 ended on 2026-06-30. Run gpg --version on each host and record the result against the host name. Any host on branch 2.4 or older needs an upgrade decision before any key work begins.

GnuPG download page

Existing RSA and ECC keys in keyrings

Export the key list from each keyring with gpg --list-keys --with-colons and note the algorithm of every primary and subkey. Keys shown as RSA (for example rsa2048 or rsa3072) and ECC keys such as ed25519 and cv25519 are the classical material a post-quantum plan has to account for. The manual's current default for new keys is still rsa2048/cert,sign+rsa2048/encr or rsa3072, so older keyrings will mostly hold RSA. Record key length, creation date and whether each key is still in use.

GPG esoteric options

SSH use through gpg-agent

Where gpg-agent serves SSH, check whether enable-ssh-support is set and which keys are allowed to authenticate. The manual says only keys listed in the sshcontrol file, identified by their 40-hex-digit keygrip, are used for SSH, and that the file is deprecated in favor of a Use-for-ssh attribute in the key files. Note every keygrip in sshcontrol and every key carrying Use-for-ssh, because each one is a classical key used for login. Confirm the file location on each host before you rely on the list.

Agent configuration manual

Keyserver and dirmngr configuration

Check dirmngr.conf for keyserver entries and any hkp-cacert directive. The dirmngr manual says there has been no default keyserver since version 2.5.3, so a host with no explicit keyserver configured will not fetch keys from one. Without an hkp-cacert directive, dirmngr verifies hkps TLS certificates against the system CAs, so record which trust store each host uses. Also note whether --allow-ocsp is set, because OCSP requests are rejected by default.

Dirmngr options manual

Weak-signature and s2k settings

Review the settings that govern how keys are protected and how old signatures are judged, since these decide whether a legacy key is still accepted. The gpg manual says third-party key signatures made with SHA-1 are treated as invalid by default, and that --allow-weak-key-signatures overrides this. Record any host where that override is in use, along with any custom --s2k-digest-algo or --s2k-cipher-algo value. A host that depends on these overrides needs a separate fix from the key rotation work.

OpenPGP options manual

How the answer differs by version line and deployment

The 2.5 and 2.6 branches are the lines that the sources describe as Long Term Support, with the end-of-life date still to be announced. The 2.5 series introduced Kyber (ML-KEM) as a post-quantum encryption algorithm, and the 2.6 series is described as not differing much from 2.4 apart from PQC support. Systems on these branches can generate Kyber subkeys, but the sources do not say that a post-quantum algorithm is the default for new keys.

  • Key generation: gpg --quick-generate-key accepts the algo values default, future-default and pqc, and pqc yields a key with a quantum-resistant encryption subkey.
  • Kyber subkeys added to existing keys: gpg --edit-key with addkey lets users select the Kyber variants, according to the 2.5.12 announcement.
  • Secret key handling: the 2.5.14 announcement says import and export of Kyber secret keys is allowed and that Kyber keys are protected in the agent.
  • Default for new keys: the --default-new-key-algo page still gives an RSA default and names a planned Ed25519 and Curve25519 future default, so confirm what your build actually produces.

Confirm the exact branch on each host with gpg --version, and check the export behavior of your build before relying on Kyber keys in backups.

How to inventory GnuPG versions and key types

This sequence records which GnuPG versions run on each host and which RSA and ECC keys exist as primary keys and subkeys, along with the agent and SSH settings that decide which keys are used. The output gives the list of installs to upgrade and the key inventory a post-quantum plan needs.

  1. Collect installed gpg versions on each host

    The administrator who owns each server or workstation runs the gpg version command on every host in scope, including developer laptops, build servers and signing machines, and records the output with the hostname. Check the version line against the current stable release (2.5.24, dated 2026-09-23) and the legacy 1.4 release (1.4.23, dated 2018-06-11) listed on the GnuPG download page as of 2026-12-04. Record any 2.2 or 2.4 installs separately for upgrade planning, because the download page gives end-of-life dates of 2024-12-31 for branch 2.2 and 2026-06-30 for branch 2.4. The step is done when every host in scope has a version recorded next to its name.

  2. List public keys and their algorithms

    Run gpg --list-keys on each host, and for each key record the fingerprint, the creation date, the primary key algorithm and the algorithm of every subkey, as shown in the output. Export this to a file kept with the host record so the inventory can be compared across hosts. Keys imported from others, such as release signing keys, should be listed too, because they affect verification even when the host holds no secret material. The step is done when the output is saved for each host and every key is accounted for.

  3. List secret keys held on each host

    Run gpg --list-secret-keys on each host to identify keys whose private halves the host can use to sign or decrypt. A key appearing only in the public list has no private half on that host, so it does not need the same handling in the migration. Compare the secret list with the public list from the previous step and mark each secret key as signing, encryption or certification. The step is done when each host has a secret-key list that matches the public list for the keys it holds.

  4. Identify RSA and ECC primary keys and subkeys

    Go through the algorithm column of each saved listing and tag every primary key and every subkey as RSA or ECC, noting the bit length for RSA keys as printed, since the gpg output gives key lengths for RSA. Confirm the algorithm names against the key generation options in the GnuPG manual, which describe the default current key (rsa2048 for certification and signing with an rsa2048 encryption subkey, or rsa3072) and a planned future default of ed25519 and cv25519. Keys that use the post-quantum options described in the manual (the pqc value, which the manual says yields a quantum-resistant encryption subkey) should be recorded as their own category. The step is done when every key carries an RSA, ECC or post-quantum tag.

  5. Check agent and sshcontrol configuration

    On each host, read the gpg-agent configuration and the sshcontrol file, if one is present, to see which keys the agent uses for SSH. The GnuPG manual says only keys listed in sshcontrol by their 40-hex-digit keygrip are used for the SSH protocol, and that the file is deprecated in favor of a Use-for-ssh attribute in the key files, so record which mechanism each host uses. Check whether enable-ssh-support is set, because the manual says SSH_AUTH_SOCK is only set when that option is given. Record the default-cache-ttl value, which the manual gives as 600 seconds by default. The step is done when each host's agent and SSH key selection is written down next to its key inventory.

  6. Record installs to upgrade

    Using the version list from the first step, build a separate list of every host still running a 2.2 or 2.4 release, with the date of that branch's end of life from the GnuPG download page. Note that the same page lists branches 2.5 and 2.6 as Long Term Support, with the end-of-life date still to be announced. Give each host an owner and mark whether the upgrade path to 2.5 or 2.6 has been confirmed in the environment. Ask the GnuPG Project or your distribution's packaging team to confirm which release each platform will ship, because the sources listed on this page do not say which distribution packages carry which version. The step is done when every 2.2 or 2.4 host has an owner and a recorded upgrade target.

  7. Verify each step against the command output

    For each host, compare the saved outputs with the inventory document: confirm the version line matches the record, confirm the key count and fingerprints in the public listing match the secret listing where a private key is held, and confirm each RSA, ECC and post-quantum tag matches the algorithm column. Repeat the agent and sshcontrol check and confirm the recorded setting still matches the file. Mismatches go back to the step that produced them, and the host is not marked complete until the outputs agree. The step is done when a second person has reviewed the saved outputs and signed off each host's record.

What the sources do not say about GnuPG legacy keys

The sources listed on this page give a dated picture of GnuPG's post-quantum work, but several points that a migration plan depends on remain unstated. Each card names one open point and the question to put to the GnuPG project or its mailing list before the plan is final.

Default algorithm for new keys

The manual's current default for new keys is rsa2048 or rsa3072, and it names ed25519 with cv25519 as the planned future default. The manual does not say whether a post-quantum algorithm will become a default, so new keys created by a standard command will not be post-quantum unless an option is set. Ask the project whether a post-quantum default is planned, and on what release, before writing a policy that depends on it.

Esoteric options manual

Full set of composite curves

The 2024 post by Werner Koch left open which curve pairs with ML-KEM-768, and it did not list the composites shipped in current releases. The manual's naming pattern, such as ky1024_cv448, shows only one example. Ask the project for the complete list of shipped composite algorithms, by release, so that inventory records and client compatibility checks use exact names.

Kyber specification post

Quantum-resistant signatures

The 2024 post said quantum-resistant signature schemes were not yet available and were less urgent than encryption. The sources on this page do not say whether any such scheme has since been added. Ask the GnuPG project whether a post-quantum signature algorithm is implemented, and if so which release and which key types. Until then, signing keys in an inventory should stay marked as unconfirmed for post-quantum support.

The require-pqc-encryption option

The 2024 post floated a gpg option named --require-pqc-encryption to force quantum-resistant encryption. The post labeled it a proposal, and the manual does not document it. Do not write procedures that depend on it. Ask the mailing list whether the option was implemented, and if so, which release introduced it and what it does with keys that lack a post-quantum subkey.

Operational commands manual

End-of-life dates for branches 2.5 and 2.6

On the download page checked 2026-12-04, branches 2.5 and 2.6 are listed as Long Term Support, and their end-of-life dates are to be announced. The sources do not give those dates. Ask the GnuPG project for the planned end-of-life dates for both branches, because a migration schedule for servers and workstations needs them to set the version that must be in place.

GnuPG download page

What can go wrong with mixed GnuPG versions and key types

The main risk in a mixed estate is that a sender produces a key or signature that a recipient cannot process. The GnuPG 2.5 series introduced Kyber (also called ML-KEM or FIPS-203) as a post-quantum encryption algorithm, and the 2.5.22 announcement describes it as one of the main features of that series. Before you generate pqc keys with gpg --quick-generate-key, check that every recipient runs a 2.5.x release. The sources on this page do not say how older clients interoperate with Kyber subkeys, so do not assume that a 2.4 or 2.2 client can read a message encrypted to one. Test an actual encrypt-and-decrypt round trip between your oldest and newest supported installs before you rely on it.

Handling of Kyber secret keys has also changed in a way that affects operations. The 2.5.14 announcement says import and export of Kyber secret keys is now allowed and that Kyber keys are now protected in the agent. Export of a Kyber secret key is therefore a supported operation, which makes it an exposure path: a backup file or a copy moved to another workstation carries the key. Decide who may export these keys, record where exported copies are stored, and confirm that the 2.5.14 or later agent is installed on every machine that will hold them. The 2.5.12 release fixed a regression affecting composite post-quantum and ECC algorithms, so builds before that release should not be used for composite keys.

Some SHA-1 defaults can also cause mixed-version failures. The gpg manual says third-party key signatures made with SHA-1 are treated as invalid by default, and that --allow-weak-key-signatures overrides this. An older key set that depends on SHA-1 third-party signatures may therefore show as unverified after an upgrade. Inventory the third-party signatures in your keyrings before upgrading, and decide whether to re-sign or to set the override in a documented, time-limited way.

Unsupported branches add a further risk. The download page gave end-of-life dates of 2024-12-31 for branch 2.2 and 2026-06-30 for branch 2.4 on 2026-12-04, and the 2.5.22 announcement says 2.4 receives no more updates. Any 2.2 or 2.4 install still in use receives no security fixes, so list every installed version across servers and workstations and schedule their upgrade to a supported 2.5 or 2.6 release. Confirm each machine's version with gpg --version, because package managers on older systems often ship a branch that has already ended support.

Questions administrators ask about GnuPG legacy keys

Is GnuPG quantum safe?

The sources do not support calling GnuPG quantum safe, and no product should be described that way on the strength of this page. What the sources show is narrower: the GnuPG 2.5 series introduced Kyber (ML-KEM, FIPS-203) as a post-quantum encryption algorithm, and the 2.5.12 and 2.5.14 releases added Kyber key generation, import, export and agent protection. Whether a given key or workflow uses post-quantum encryption depends on the key type you create and the version you run. Signatures are a separate question, and the 2024 Koch post says quantum-resistant signature schemes were not yet available at that time. Confirm current signature support against the release notes for your version before recording an answer.

Which GnuPG version does a team need for post-quantum keys?

The sources point to the 2.5 series as the branch that introduced Kyber, with 2.5.12 adding Kyber variants to gpg --edit-key addkey and 2.5.14 allowing Kyber secret key import and export. The 2.5 branch is listed as Long Term Support on the download page checked on 2026-12-04, with the end-of-life date still to be announced. Branch 2.4 reached end-of-life on 2026-06-30 and 2.2 on 2024-12-31, so older installs will not receive updates. The 1.4 release, dated 2018-06-11, is a legacy branch. Check the installed version with gpg --version and compare it against the 2.5 release notes before planning.

Do the new post-quantum key types cost extra?

The sources do not give any price for GnuPG or for its post-quantum key types, and GnuPG is free software licensed under the GNU General Public License, so there is no license fee to check. Cost arises from the work around the software: testing key generation in your environment, updating scripts and key-management procedures, and supporting clients that cannot read the new keys. Those costs depend on the size of your key estate and your internal staffing, not on the algorithm. Ask any service provider for a fixed-scope written quote, and confirm with the GnuPG project whether any commercial support is offered.

What breaks when older clients meet new GnuPG keys?

The sources do not describe a full compatibility matrix, so treat this as a test item rather than a known outcome. The GnuPG manual notes that Kyber keys are implemented as a composite key, and that a GNU-specific extension can be forced for all key types with --export-options=mode1003. Koch's 2024 post says the naming of Kyber composites such as ky1024_cv448 was still being settled, so an older or differently built client may not recognize a key. Test a new key with every client your organization relies on, including any clients that import keys through key servers, before you rely on it.

What should we ask GnuPG or the vendor before committing?

Ask specific questions tied to the sources. Which exact composite algorithms does your release ship, and does the 2.5 series list them in full? Are post-quantum signature schemes available in the release you plan to deploy, and if not, when? Will the 2.5 branch receive an announced end-of-life date, and how much notice will be given? Does the project plan a --require-pqc-encryption style option, which the 2024 post proposed as a future idea but did not document? Record the answers with their dates, since the sources show that these details have changed between 2024 and 2026.

Can we inventory GnuPG keys and versions ourselves?

Yes, much of the inventory can be done internally. Collect the installed version with gpg --version on each workstation and server, list keys with gpg --list-keys and gpg --list-secret-keys, and note the algorithm and subkey type for each. The gpg-agent settings, including whether enable-ssh-support is set and which keys are listed in sshcontrol or marked Use-for-ssh, also belong in the inventory. Outside help is useful when the estate is large, when keys are held in unmanaged places, or when you need an independent record for an assessment. DeployOpen can plan and document a GnuPG inventory as a fixed-scope engagement, and does not issue audit reports or certifications.

Does GnuPG change the default key type for new keys?

Not according to the manual page checked on 2026-12-04. It gives the current default as rsa2048/cert,sign+rsa2048/encr (or rsa3072) and names ed25519/cert,sign+cv25519/encr as the planned future default. The manual does not state that a post-quantum algorithm is the default for new keys. Post-quantum key types are chosen explicitly, for example with gpg --quick-generate-key using the algo value pqc, so a team that wants them must set them deliberately and record that choice.

How DeployOpen helps inventory and plan GnuPG upgrades

DeployOpen approaches legacy GnuPG key types and installed versions as an inventory problem first. We find which installed GnuPG versions and key types exist across your servers and workstations, record what each one can and cannot do for post-quantum encryption, and then plan the upgrade order from that evidence.

How we scope

  • Engagements are fixed-scope, with the systems, hosts and key types to inventory agreed in writing before work starts.
  • We confirm which GnuPG branches your estate runs, including 2.2 and 2.4 branches that the download page lists as end-of-life.
  • Ongoing support and repeat inventories can be set up as a retainer once the initial scope is delivered.

How we build

  • We collect GnuPG version and key inventories from each host, separating legacy 1.4 installs from 2.x installs.
  • We record which key types exist, including RSA, ECC and any Kyber or composite keys, with the GnuPG release that supports each.
  • We test whether --quick-generate-key with the pqc option works on your target versions before recommending it for any system.

How we hand over

  • You receive the inventory as a written record of hosts, GnuPG versions, branch status and key types, dated at collection.
  • The plan lists upgrade order, with the vendor sources and the 2.5 release notes behind each version recommendation.
  • Each open point is marked as something to confirm with the vendor or in your own environment, not as a settled fact.

How we support

  • We can rerun the inventory after upgrades to confirm the installed versions and key types on each host have changed as planned.
  • Retainers cover follow-up questions when GnuPG publishes new release notes or changes its branch support dates.
  • Where the sources do not say how a feature behaves, we tell you what to ask the GnuPG project before you rely on it.

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.