Last active
September 5, 2018 03:25
-
-
Save kaelzhang/874fccc5441e648c3733108bc32d5fb9 to your computer and use it in GitHub Desktop.
How to config gpg for publishing artifacts to maven cental
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gpg --full-gen-key | |
gpg -K | |
# /Users/kael/.gnupg/pubring.kbx | |
# ------------------------------ | |
# sec rsa2048 2018-09-04 [SC] | |
# XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
# uid [ultimate] Kael Zhang <[email protected]> | |
# ssb rsa2048 2018-09-04 [E] | |
# The `XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` will be the key | |
# And the last 8 characters of the key is the value of `signing.keyId` | |
# We need to explicitly write the .gpg file | |
gpg --keyring secring.gpg --export-secret-keys > ~/.gnupg/secring.gpg | |
# It is required to be sent to one of the key servers | |
gpg --keyserver $KEY_SERVER --send-key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
# Available key servers are: | |
# - keyserver.ubuntu.com | |
# - pool.sks-keyservers.net | |
# - keys.gnupg.net |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment