Seeking help.

Werner Koch wk at gnupg.org
Thu Oct 22 15:27:29 CEST 2020


On Wed, 21 Oct 2020 18:59, Mike said:
> I had to recover gnupg file from a corrupted os. The contents of the gnupg
> file are encrypted and are not in openpgp data. So when I try to import my
> keys from 'private-keys-v1.d' nothing happens. Output says no openpgp data
> found and 0 items processed.

You simply restore the files from private-keys-v1. These are internal to
gnupg and it is not possible or needed to importat them.  The format of
the private key files is well specified and we take care to keep them
compatible with all GnuPG 2 versions.

To make the restored private keys actually work you also need the public
keys.  Ask someone else or a keyserver to send you your public key if
you don't have a backup.  With the private keys in place gpg will be
able list them and be able to decrypt or sign data.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20201022/df2d71c8/attachment.sig>


More information about the Gnupg-users mailing list