<p>Keyoxide is a project that parses a PGP key and makes its data available to Mastodon for identity verification.</p>
<p><small>Added by Ken - 2022-12-27</small></p>
<p>To list the key</p>
<p><code>gpg2 --list-secret-keys</code></p>
<p>To update and export your key</p>
<pre><code>YOUR_GPG_UID=$( gpg2 --list-secret-keys | grep -A1 &#39;sec&#39; | tail -1 | awk &#39;{print $NF}&#39; )

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

$ gpg2 --edit-key ${YOUR_GPG_UID}

gpg&gt; uid 1

gpg&gt; primary

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

gpg&gt; showpref 

gpg&gt; save 

$ gpg2 --armor --export ${YOUR_GPG_UID} &gt; pub-key.asc</code></pre>
<p>Upload to <a href="https://keys.openpgp.org/">https://keys.openpgp.org/</a></p>
<p>Select Verify email</p>
<p>Click the email link</p>
<p>You should get a message "Your key ${YOUR_GPG_UID} is now published for the identity YOUR_EMAIL_ADDRESS."</p>
<p>Got to your mastodon server https://YOUR-MASTODON-SERVER/settings/profile</p>
<p>And on the page add GPG and https://keyoxide.org/hkp/${YOUR_GPG_UID}</p>



<h3>Links</h3>
<ul>
<li><a href="https://opensource.com/article/22/12/verified-mastodon-pgp-keyoxide">https://opensource.com/article/22/12/verified-mastodon-pgp-keyoxide</a></li>
<li><a href="https://www.youtube.com/watch?v=nLhiNOa4DBs">https://www.youtube.com/watch?v=nLhiNOa4DBs</a></li>
</ul>

