Cannot import private key
mail at scott.armitage.name
Wed Apr 18 23:13:27 CEST 2012
I am trying to integrate GnuPG with my workflow, and am in the stage of
setting up a new keypair for use across all of my computers. I have created
the key pair, given the private key a passphrase, and generated a
revocation certificate for that key. I am now trying to import that private
key on another computer, but I am having some issues.
I first export the private key using:
gpg --export-secret-key -a <key_id> > private.asc
This seems to work fine, and generates an ASCII-armored key file of the form
-----BEGIN PGP PRIVATE KEY BLOCK-----
Version: GnuPG v1.4.9 (MingW32)
-----END PGP PRIVATE KEY BLOCK-----
I then take this private key file to a new computer and try to import it
gpg --import private.asc
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
Any suggestions? This process works fine for exporting and importing public
keys, it's only the private one that is throwing this error. I have also
tried the --allow-secret-key-import, though I understand this is
effectively redundant now.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnupg-users