How to export a GPG private key and public key to a file I have generated keys using GPG, by executing the following command gpg --gen-key Now I need to export the key pair to a file; i e , private and public keys to private pgp and public pgp, respecti
Solving gpg: decryption failed: No secret key - Unix Linux Stack Exchange Then when using gpg, your ~ gnupg directory should be backuped with as many precaution as the enciphered files You also have the gpg --export > export and gpg --export-secret-keys > export commands to export all yours keys in a pair of files you should backup instead But these precautions must be done before losing the disk
help understanding gpg --list--keys output - Unix Linux Stack Exchange Your private key, which, for historical reasons*, PGP and GPG call 'secret' and which is shown by --list-secret-keys, would be even longer; in addition, showing it on a terminal where in some cases a bad person might be able to get a copy of it is extremely bad for security How do i get my key id?
How to renew an expired encryption subkey with gpg There is (a newer?) option in gpg (2 2 41) where you can extend all your subkeys at once with only the command: gpg --quick-set-expire <1> <2> <3> meaning: <1> fingerprint of your key (from gpg --list-secret-keys) <2> how long you would like to extend the expiration period <3> optionally, the subkey fingerprints to extend ('*' to extend all non-expired subkeys) e g : gpg --quick-set-expire
gpg - GnuPG command to show key info from file - Unix Linux Stack . . . Does anybody know the correct command to read a key file and show information about the key? Edit: Ideally the mechanism would be able to read the keyfile from stdin, such as cat keyfile key | gpg --some-command I should have mentioned this earlier but so many commands for gpg work with stdin I didn't even consider it a relevant constraint
gpg: signing failed: No such file or directory I tried the following to fix the problem: Kill gpg-agent with gpgconf --kill gpg-agent and killall gpg-agent Restart WSL2 Restart my host machine Generate a new key, which gives me the same message as test sign Create a gpg conf file with no-tty option Use chmod 700 on ~ gnupg private-keys-v1 d I'm using gpg version 2 2 27 with libgcrypt 1 8 8