keyoxide-web/content/guides/gitlab.md

62 lines
1.4 KiB
Markdown
Raw Normal View History

2020-08-19 12:23:37 -06:00
# Adding a GitLab proof
Let's add a decentralized GitLab proof to your OpenPGP keys. This will also work on self-hosted instances.
[[toc]]
## Post a GitLab proof message
2020-08-20 07:57:55 -06:00
Log in to [gitlab.com](https://gitlab.com) or any other GitLab instance and click on **New project**.
2020-08-19 12:23:37 -06:00
2020-08-20 07:57:55 -06:00
Set the project name to a name of your choosing.
2020-08-19 12:23:37 -06:00
Set the project slug to **gitlab_proof**.
Set the project description to (make sure to replace FINGERPRINT):
```
[Verifying my OpenPGP key: openpgp4fpr:FINGERPRINT]
```
2020-08-20 08:00:30 -06:00
Optional: edit the README.md to this:
```
This is an OpenPGP proof that connects my OpenPGP key to this GitLab account. For details check out https://keyoxide.org/guides/openpgp-proofs
```
2020-08-19 12:23:37 -06:00
After creating the project, copy the link to the project.
## Update the PGP key
First, edit the key (make sure to replace FINGERPRINT):
2021-03-31 06:54:54 -06:00
```
gpg --edit-key FINGERPRINT
```
2020-08-19 12:23:37 -06:00
Add a new notation:
2021-03-31 06:54:54 -06:00
```
notation
```
2020-08-19 12:23:37 -06:00
Enter the notation (make sure to update with the link to the project copied above):
2021-03-31 06:54:54 -06:00
```
proof@metacode.biz=https://gitlab.example.com/USERNAME/gitlab_proof
```
2020-08-19 12:23:37 -06:00
Save the key:
2021-03-31 06:54:54 -06:00
```
save
```
2020-08-19 12:23:37 -06:00
2020-08-20 07:57:55 -06:00
Upload the key to WKD or use the following command to upload the key to [keys.openpgp.org](https://keys.openpgp.org) (make sure to replace FINGERPRINT):
2020-08-19 12:23:37 -06:00
2021-03-31 06:54:54 -06:00
```
gpg --keyserver hkps://keys.openpgp.org --send-keys FINGERPRINT
```
2020-08-19 12:23:37 -06:00
And you're done! Reload your profile page, it should now show a verified GitLab account.