Difference between revisions of "Generating a new GPG key"
Jump to navigation
Jump to search
(18 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | * https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key?platform=linux | ||
+ | |||
* <code>[[gpg --full-generate-key]]</code> | * <code>[[gpg --full-generate-key]]</code> | ||
* <code>[[gpg --list-secret-keys --keyid-format=long]]</code> | * <code>[[gpg --list-secret-keys --keyid-format=long]]</code> | ||
+ | * <code>[[gpg --armor --export]]</code> | ||
+ | ** <code>gpg --export --armor [email protected] > public_key.asc</code> | ||
+ | |||
+ | |||
+ | |||
+ | * <code>[[gpg --encrypt]] --recipient [email protected] file.txt</code> | ||
+ | |||
+ | * <code>[[gpg --edit-key]] [email protected]</code> | ||
+ | |||
+ | |||
+ | Note: When asked to enter your email address, ensure that you enter the verified email address for your GitHub account. To keep your email address private, use your GitHub-provided no-reply email address. For more information, see "Verifying your email address" and "Setting your commit email address." | ||
+ | |||
+ | |||
+ | * [[Signing commits]]: <code>[[git config commit.gpgsign true]]</code> | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[~/.gnupg/]]</code> | ||
+ | * [[Signing commits]] | ||
+ | * <code>[[brew install gpg]]</code> | ||
+ | * <code>[[brew install --cask gpg-suite]]</code> | ||
== See also == | == See also == | ||
* {{gpg}} | * {{gpg}} | ||
+ | * {{GPG}} | ||
[[Category:GPG]] | [[Category:GPG]] |
Latest revision as of 11:31, 4 July 2024
gpg --full-generate-key
gpg --list-secret-keys --keyid-format=long
gpg --armor --export
gpg --export --armor [email protected] > public_key.asc
gpg --encrypt --recipient [email protected] file.txt
Note: When asked to enter your email address, ensure that you enter the verified email address for your GitHub account. To keep your email address private, use your GitHub-provided no-reply email address. For more information, see "Verifying your email address" and "Setting your commit email address."
Related[edit]
See also[edit]
gpg, --batch | --generate-key | --full-generate-key | --recv-keys | --export | --encrypt | --import | --list-keys | --list-secret-key | --gen-key | --armor | --dearmor | --send-keys | --search-keys | --quick-set-expire | --keyserver | --delete-keys | --full-generate-key | --armor --export | gpg --help
- GNU Privacy Guard (GPG),
gpg, gpg-agent, gpg-suite
, GPGAuth,gpg --help
,~/.gnupg/
Advertising: