Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: GPG-sign releases or commits #12

Closed
erikarvstedt opened this issue Aug 28, 2022 · 4 comments
Closed

Request: GPG-sign releases or commits #12

erikarvstedt opened this issue Aug 28, 2022 · 4 comments

Comments

@erikarvstedt
Copy link
Contributor

While packaging trustedcoin for nix-bitcoin, where we use signature checking for all package releases, I noticed that trustedcoin provides no signatures at all.
Could you add sigs? This would remove Github as a trusted party for distributing trustedcoin.

(Yes, it's slightly amusing to request this for a package like trustedcoin.)

@fiatjaf
Copy link
Collaborator

fiatjaf commented Aug 28, 2022

I have no idea of how to do this. Is there a guide somewhere? Do the signatures have to be in some special place or something like that? What about the key?

@erikarvstedt
Copy link
Contributor Author

erikarvstedt commented Aug 28, 2022

  1. If you don't have a GPG key, generate it,
  2. Add the key to GitHub
  3. Follow section Telling Git about your GPG key
  4. Publish the pubkey to keyservers:
# key is the same hex string that you used in `git config --global user.signingkey <key>`
key=<key>
gpg --send-keys --keyserver hkps://keys.openpgp.org $key
gpg --send-keys --keyserver hkps://keyserver.ubuntu.com $key
  1. To sign all future commits in a git repo, run git config commit.gpgsign true in the repo.
    To configure this for all repos, change the global config: git config --global commit.gpgsign true

@fiatjaf
Copy link
Collaborator

fiatjaf commented Aug 28, 2022

Thank you for the guide. I think this should be done. Let me know if not.

@fiatjaf fiatjaf closed this as completed Aug 28, 2022
@erikarvstedt
Copy link
Contributor Author

Done, indeed. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants