Difference between revisions of "Generating a new GPG key"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
* <code>[[gpg --armor --export]]</code> | * <code>[[gpg --armor --export]]</code> | ||
** <code>gpg --export --armor [email protected] > public_key.asc</code> | ** <code>gpg --export --armor [email protected] > public_key.asc</code> | ||
+ | |||
+ | |||
+ | |||
* <code>[[gpg --encrypt]] --recipient [email protected] file.txt</code> | * <code>[[gpg --encrypt]] --recipient [email protected] file.txt</code> | ||
Line 15: | Line 18: | ||
− | + | * [[Signing commits]]: <code>[[git config commit.gpgsign true]]</code> | |
== Related == | == Related == | ||
* <code>[[~/.gnupg/]]</code> | * <code>[[~/.gnupg/]]</code> | ||
+ | * [[Signing commits]] | ||
+ | * <code>[[brew install gpg]]</code> | ||
+ | * <code>[[brew install --cask gpg-suite]]</code> | ||
== See also == | == See also == |
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: