git gpg签名不良签名

发布于 2025-02-06 19:18:58 字数 1854 浏览 2 评论 0原文

我试图启用GPG在Mac上签名。我已经成功签署了一项提交,然后尝试再次进行,因为我无法再次使它再次正常工作。 即使关键ID是相同的,每次说签名不好。

我通常可以签署常规文本文件等。没有问题 - git是唯一做出这样奇怪例外的人。

任何帮助都将不胜感激 - 谢谢!

commit 2cce84252649442b2b1700986f969fd70d8d7dbc (HEAD -> move-to-docker)
gpg: Signatur vom Di 14 Jun 07:30:19 2022 CEST
gpg:                mittels EDDSA-Schlüssel C84C8DAA9C25D70F553262EE4584796C0B3C2855
gpg: FALSCHE Signatur von "Nick Wassermann (Root SSH User) <[email protected]>" [unbekannt]
Author: Nick Wassermann <[email protected]>
Date:   Tue Jun 14 07:30:19 2022 +0200

    tte

commit 3ad84f737e7d1f42907cb55b11482c7d5558adaf
gpg: Signatur vom Mo 13 Jun 09:23:06 2022 CEST
gpg:                mittels EDDSA-Schlüssel C84C8DAA9C25D70F553262EE4584796C0B3C2855
gpg: Korrekte Signatur von "Nick Wassermann (Root SSH User) <[email protected]>" [unbekannt]
gpg: WARNUNG: Dieser Schlüssel trägt keine vertrauenswürdige Signatur!
gpg:          Es gibt keinen Hinweis, daß die Signatur wirklich dem vorgeblichen Besitzer gehört.
Haupt-Fingerabdruck  = 90C6 F702 31A1 7582 98B3  C94C 1779 A12E 703B D538
Unter-Fingerabdruck  = C84C 8DAA 9C25 D70F 5532  62EE 4584 796C 0B3C 2855
Author: Nick Wassermann <[email protected]>
Date:   Mon Jun 13 09:23:06 2022 +0200

    added comment

I am trying to enable gpg commit signing on my mac. I have successfully signed one commit and then tried to do it again and ever since I can't get it to work properly again.
Every time it says Bad Signature even though the KEY ID is the same.

I can normally sign regular text files etc. without problems - git is the only one making such weird exceptions.

Any help is appreciated - Thanks!

commit 2cce84252649442b2b1700986f969fd70d8d7dbc (HEAD -> move-to-docker)
gpg: Signatur vom Di 14 Jun 07:30:19 2022 CEST
gpg:                mittels EDDSA-Schlüssel C84C8DAA9C25D70F553262EE4584796C0B3C2855
gpg: FALSCHE Signatur von "Nick Wassermann (Root SSH User) <[email protected]>" [unbekannt]
Author: Nick Wassermann <[email protected]>
Date:   Tue Jun 14 07:30:19 2022 +0200

    tte

commit 3ad84f737e7d1f42907cb55b11482c7d5558adaf
gpg: Signatur vom Mo 13 Jun 09:23:06 2022 CEST
gpg:                mittels EDDSA-Schlüssel C84C8DAA9C25D70F553262EE4584796C0B3C2855
gpg: Korrekte Signatur von "Nick Wassermann (Root SSH User) <[email protected]>" [unbekannt]
gpg: WARNUNG: Dieser Schlüssel trägt keine vertrauenswürdige Signatur!
gpg:          Es gibt keinen Hinweis, daß die Signatur wirklich dem vorgeblichen Besitzer gehört.
Haupt-Fingerabdruck  = 90C6 F702 31A1 7582 98B3  C94C 1779 A12E 703B D538
Unter-Fingerabdruck  = C84C 8DAA 9C25 D70F 5532  62EE 4584 796C 0B3C 2855
Author: Nick Wassermann <[email protected]>
Date:   Mon Jun 13 09:23:06 2022 +0200

    added comment

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

泪眸﹌ 2025-02-13 19:18:58

双 - 检查 gpg noreferrer“> gpg)

要签署提交,您必须配置本地计算机和gitlab帐户:

  • 创建GPG密钥。
  • 在您的帐户中添加GPG密钥。
  • 将您的GPG密钥与GIT相关联。
  • 签署您的git提议。

注意该电子邮件必须匹配您的Gitlab帐户中的经过验证的电子邮件地址。
并检查您的keyID(git config --lobal user.signingkey

作为替代方案,您还可以考虑使用X.509证书签名

Double-check the GitLab sign commit (with GPG) process:

To sign commits, you must configure both your local machine and your GitLab account:

  • Create a GPG key.
  • Add a GPG key to your account.
  • Associate your GPG key with Git.
  • Sign your Git commits.

Note the email must match a verified email address in your GitLab account.
And check your keyID (git config --global user.signingkey)

As an alternative, you can also consider signing your commits with X.509 certificates.

懒猫 2025-02-13 19:18:58

See GitLab 15.7 (December 2022) proposes an alternative approach, simpler than GPG:

Sign commits with your SSH key

Signing commits just got a lot simpler. Use SSH keys
to sign commits,
and provide others with confidence that a Verified commit was authored by you.

Previous methods for signing commits required a GPG key or an X.509
certificate, neither of which can be used to sign in to GitLab.
Adding support for commit signing with SSH keys now makes it possible
to reuse your authentication key pair to also sign your commits. If you
already authenticate into GitLab with an SSH key, add three lines of code
to your local Git configuration and all your future commits will be signed.

By default, all SSH keys currently in your profile can be used for
both authentication and signing commits. To use a key for only
one of the purposes, upload a new key.

sign

See Documentation and Issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文