PGP key generation
Prerequisites
Section titled “Prerequisites”Windows
Section titled “Windows”winget install -e --id Microsoft.Gitcd "C:\Program Files\Git".\git-bash.exeDebian / Ubuntu
Section titled “Debian / Ubuntu”sudo apt update && sudo apt install gitsudo pacman -Syu && sudo pacman -S gitAlpine
Section titled “Alpine”apk update && apk add gitGenerate the keys
Section titled “Generate the keys”gpg --full-generate-keyKind of key: 1 (RSA and RSA (default))Keysize: 4096Valid for: 0 (key does not expire)Is this correct: yReal name: your name or nicknameEmail address: your email addressComment:You will see something like this:
You selected this USER-ID: "Real name <Email@Address>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit?If everything is correct, type O.
You will be asked to enter a passphrase. Choose a strong one and save it in a password manager.
Example of a strong passphrase: Catapult-Brewery-Hamstring4-Landfill-Visor-Slideshow.
Export the keys
Section titled “Export the keys”Private key
Section titled “Private key”gpg --armor --export-secret-keys Email@Address > private_key.ascPublic key
Section titled “Public key”gpg --armor --export Email@Address > public_key.asc