Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use GPG to verify your submission

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces you how to use GPG to verify your submission, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Recently, it was found that gitee.com, like github.com, began to use gpg submission verification for a long time and found that its commit did not have a green icon. So I studied and found that if you use gpg suite, it should be super easy.

Install first

Brew cask install gpg-suite

Execute after installation is complete

Gpg-full-generate-key

Generate a 4096-bit gpg certificate according to the guidelines and then

Gpg-- list-secret-keys-- keyid-format LONG/Users/hainuo/.gnupg/pubring.kbx--sec rsa4096/4EF051CE87404F85 2019-10-19 [SC] A7C99*1CE87404F85uid [absolute] hainuo (gpg long time) ssb rsa4096/02F3D*539B3 2019-10-19 [E]

Get the GPG key id 4EF051CE87404F85 and execute

Git config-global gpg.program / usr/local/bin/gpggit config-global user.signingkey 4EF051CE87404F85 git config-global commit.gpgsign true

Don't forget git config-- global commit.gpgsign true, don't forget git config-- global commit.gpgsign true, don't forget git config-- global commit.gpgsign true

Then you can execute the git commit command

You can verify that gpg is available by using the following command

Echo "test" | gpg-- clearsign-BEGIN PGP SIGNED MESSAGE-Hash: SHA256test-BEGIN PGP SIGNATURE-iQIzBAEBCAAdFiEEp8mSy95BeI+BjUpmTvBRzodAT4UFAl2rDMQACgkQTvBRzodAT4XZ5g//ZiqwzemGbOUDsbgz2KHd/25qdzz+U+KS3bFUc4dw6ouZcXD5iaPwwD17*8xyfbICPyK+F2SaVveSxQCANGg2SgsKWL4zDqA5ztrtwLp98Lvbbw/zSLyz2tio3Ob/yDvp6fTA81IzBa4ASJaaeUAFHLz2TNGhZWQf9C6XB34P4at0==W1Bt-END PGP SIGNATURE-

Publish / admin@hainuo.info using openwrite

So much for sharing about how to use GPG to verify your submission. I hope the above content can be of some help and learn more. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report