Page MenuHome GnuPG

Support exporting for of Kyber+ECC keys and subkeys
Closed, DuplicatePublic

Description

root@localhost:~# gpg --version
gpg (GnuPG) 2.5.11
libgcrypt 1.11.2
Copyright (C) 2025 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, Kyber, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128,
        CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
root@localhost:~# 
root@localhost:~# gpg -K
[keyboxd]
---------
sec   ed448/0x455FC46935C933AC 2025-08-20 [SC]
      455FC46935C933AC271123D7F71D55C167885C883A820046421E7E882D944464
uid                   [ultimate] test01
ssb   ky1024_cv448/0x0F02673C0FAF4984 2025-08-20 [E]
      0F02673C0FAF4984364BC190DF6982F89B61C4668AAA9AE4AECEA8DE395584A9
ssb   ky768_bp256/0x126777B0E12B8042 2025-08-20 [E]
      126777B0E12B80420D0DAE9E1D8D7546D56A6993C1FD5EB5E3A1483CB9CFC497
ssb   ed25519/0xDEA53EEC37122D9C 2025-08-20 [S]
      4715ADAB770F19D5AB43E218DEA53EEC37122D9C
ssb   ed25519/0x52342E9D08B4C030 2025-08-20 [A]
      1EFCA1E2C8B2F666A26F65E152342E9D08B4C030

root@localhost:~# gpg -a --export-secret-keys test01
gpg: exporting a secret dual key is not yet supported
root@localhost:~# 
root@localhost:~# gpg -a --export-secret-subkeys test01
gpg: exporting a secret dual key is not yet supported
root@localhost:~#

Details

Version
gpg (GnuPG) 2.5.11

Event Timeline

werner edited projects, added Feature Request, PQC, gnupg26; removed Bug Report.
werner added a subscriber: werner.

Well, I will re-use this as a feature request to add this feature. Workaround is to list the key with --with-keygrip and backup the ~/.gnupg/private-keys-v1.d/<keygrip>.key files.

werner renamed this task from Cannot export secret keys to Support exporting for of Kyber+ECC keys and subkeys.Thu, Aug 21, 11:17 AM
werner removed projects: gnupg26, PQC, Feature Request.

Ooops. we already got a ticket for this.