Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.

HPR3756: Verify yourself on Mastodon with PGP and Keyoxide

Hosted by Klaatu on 2022-12-26 00:00:00
Download or Listen

Keyoxide is a project that parses a PGP key and makes its data available to Mastodon for identity verification.

Added by Ken - 2022-12-27

To list the key

gpg2 --list-secret-keys

To update and export your key

YOUR_GPG_UID=$( gpg2 --list-secret-keys | grep -A1 'sec' | tail -1 | awk '{print $NF}' )

$ gpg2 --list-secret-keys ${YOUR_GPG_UID}

$ gpg2 --edit-key ${YOUR_GPG_UID}

gpg> uid 1

gpg> primary

gpg> notation
Enter the notation: proof@ariadne.id=https://YOUR-MASTODON-SERVER/@YOUR_MASTODON_ID

gpg> showpref 

gpg> save 

$ gpg2 --armor --export ${YOUR_GPG_UID} > pub-key.asc

Upload to https://keys.openpgp.org/

Select Verify email

Click the email link

You should get a message "Your key ${YOUR_GPG_UID} is now published for the identity YOUR_EMAIL_ADDRESS."

Got to your mastodon server https://YOUR-MASTODON-SERVER/settings/profile

And on the page add GPG and https://keyoxide.org/hkp/${YOUR_GPG_UID}



More Information...

Copyright Information

Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.

The HPR Website Design is released to the Public Domain.