
How to export a GPG private key and public key to a file
Nov 15, 2018 · 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, …
How to renew an expired encryption subkey with gpg
Nov 17, 2019 · 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 …
gpg --list-keys command outputs uid - Unix & Linux Stack Exchange
Nov 26, 2017 · I did a clean install of Arch Linux and imported my backed up gpg private key. As a sanity check I ran: gpg --list-keys Everything showed up as normal except for the uid which now …
How to import secret gpg key (copied from one machine to another)?
Feb 15, 2015 · I'm trying to copy my gpg key from one machine to another. I do: gpg --export ${ID} > public.key gpg --export-secret-key ${ID} > private.key Move files to new machine, and then: gpg - …
help understanding gpg --list--keys output - Unix & Linux Stack …
Oct 9, 2020 · 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 …
shell script - gpg asks for password even with --passphrase - Unix ...
I expect the following command to extract the gpg file without asking for password: gpg --passphrase 1234 file.gpg But it asks for the password. Why? This also have the same behavior: gpg --
How to find and add a public key to my gpg keyring from command …
Nov 19, 2017 · There is gpg --search, though, which allows to (interactively) search the key servers on the command line -- but be aware about the security issues it implies, and make sure to validate the …
Encrypt with GPG using a key passed as CLI argument
Dec 14, 2016 · As a solution I decided to encrypt them with GPG. The issue is that I can't find any clues on how to encrypt a particular file with a passphrase passed as a CLI argument to a gpg -c command.
How do I get the fingerprint of an ASCII-armored PGP secret key with …
As indicated in the comments, the simplest solution appears to be to first dearmor the key and then run --list-secret-keys on the new file: $ gpg --dearmor secret.asc # Creates secret.asc.gpg $ gpg --with …
gpg: keyserver receive failed: Server indicated a failure
Jan 6, 2019 · gpg: keyserver receive failed: Server indicated a failure /etc/resolv.conf is using stub 127.0.0.53 but resolves hostname fine (ie. getent hosts google.com work as expected) more than 1 …