Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.15 KB

signing_key.adoc

File metadata and controls

40 lines (30 loc) · 1.15 KB

Creating Signing keys

Summary

For Signing the code artifacts, precondition for uploading to maven-central We need a gpg-signing key

First Approach

Starting with Jose Carvajal excellent introduction: Deploy Your GitHub Project to Maven Central from GitHub actions → Thanks a lot for sharing

  • Install the GPG tool

  • Generate a new key-par using 'gpg --generate-key'

  • gpg --list-keys:

pub   rsa3072 2022-12-04 [SC] [verfällt: 2024-12-03]
      D6A0*****
uid        [ ultimativ ] ****>
sub   rsa3072 2022-12-04 [E] [verfällt: 2024-12-03]
  • gpg --keyserver keyserver.ubuntu.com --send-keys D6A0* Optional, to speed things up, not strictly necessary:

  • gpg --keyserver eys.openpgp.org --send-keys D6A0*

  • gpg --keyserver pgp.mit.edu --send-keys D6A0*

Export Key to clipboard

macOS

gpg --armor --export-secret-key joe@foo.bar | pbcopy

Ubuntu (assuming GNU base64)

gpg --armor --export-secret-key joe@foo.bar -w0 | xclip

Open Tasks / Todos

  • Minimize the key to a signing key

  • Create a project instead of a person specific key.