


Note: Some GPG installations on Linux may require you to use gpg2 -list-keys -keyid-format LONG to view a list of your existing keys instead. Press Enter to specify the default selection, indicating that the key doesn't expire. Your key must be at least 4096 bits.Įnter the length of time the key should be valid. $ gpg -default-new-key-algo rsa4096 -gen-keyĪt the prompt, specify the kind of key you want, or press Enter to accept the default.Īt the prompt, specify the key size you want, or press Enter to accept the default. If you are not on version 2.1.17 or greater, the gpg -full-generate-key command doesn't work.

