Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export gpg secret key without passphrase

Tags:

gnupg

In gpg 1.4.16 I can gpg --export-secret-keys <key> without a passphrase, and it isn't a problem. However, I cannot find anyway to do this in v2.1.9. It asks if I am okay with no passphase, I confirm, and it skips the key. There must be some configuration option to have it do as I please. What is it?

like image 239
theherk Avatar asked Nov 20 '15 18:11

theherk


People also ask

Do you need a passphrase for GPG key?

To help safeguard your key, GnuPG does not store your raw private key on disk. Instead it encrypts it using a symmetric encryption algorithm. That is why you need a passphrase to access the key.


1 Answers

For anyone still being hit by this problem (like me): It was a regression in gpg versions beginning at 2.1.0 which was fixed in 2.1.13.

See discussion and fix.

like image 173
undko Avatar answered Oct 08 '22 01:10

undko