gpg Reference: Signing Commits with GPG Creating GPG Key Create a key with gpg --gen-key and input your name, email address, and passphrase when prompted. For more options, use gpg --full-generate-key. To view secret keys: gpg