Skip to content

Instantly share code, notes, and snippets.

@sczerwinski
Created August 20, 2020 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sczerwinski/1b089bcc0f1929c54522961c5956141c to your computer and use it in GitHub Desktop.
Save sczerwinski/1b089bcc0f1929c54522961c5956141c to your computer and use it in GitHub Desktop.
Creating signing key for Maven Central upload

Generate and publish key:

gpg --gen-key
gpg --list-keys --keyid-format 0xSHORT
gpg --list-secret-keys --keyid-format 0xSHORT
gpg --keyserver hkp://pool.sks-keyservers.net --send-keys [KEY_ID]
gpg --keyserver http://keyserver.ubuntu.com:11371/ --send-keys [KEY_ID]

Create and encrypt Secure Ring File:

gpg --export-secret-keys >~/.gnupg/secring.gpg
gpg --symmetric --cipher-algo AES256 ~/.gnupg/secring.gpg

See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment