Importing LibrePGP PQC secret keys in unattended mode
Marian Kechlibar
marian.kechlibar at circletech.net
Tue Jan 27 17:37:00 CET 2026
Hello,
with GnuPG 2.5.16 and libgcrypt 11.1.2 on Windows (Gpg4Win 5.0.0), I ran
into an issue when importing PQC secret keys into a keyring without
human interaction like this:
gpg --batch --yes --pinentry-mode loopback --passphrase "pass" --import
(asc file name)
The secret key gets parsed, but not imported, and there is an IPC
parameter complaint in stderr.
Gpg-agent log set to "guru" shows the following error:
2026-01-27 17:13:15 gpg-agent[16212] command 'IMPORT_KEY' failed: Chyba
parametru IPC
2026-01-27 17:13:15 gpg-agent[16212] DBG: chan_0x00000000000002c0 -> ERR
67109144 Chyba parametru IPC <GPG agent> - "--unattended" may only be
used with OpenPGP keys
"Chyba parametru" means "Parameter error" in Czech.
This happens with both protected and unprotected (empty password) PQC
keys, but it never happens with RSA or ECC keys.
Is this still work in progress?
(My use case: I want to run some automatic tests with separate homedirs,
and I want to import all the test keys at their start, then
decrypt/encrypt data using them.)
Best regards
Marian Kechlibar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20260127/03a960e2/attachment-0001.sig>
More information about the Gnupg-devel
mailing list