<?xml version="1.0" encoding="utf-8"?>

<feed xmlns="http://www.w3.org/2005/Atom">
<title>Tyler Cipriani: pages tagged pgp</title>
<link href="https://tylercipriani.com/tags/pgp/"/>
<link href="https://tylercipriani.com/tags/pgp/index.atom" rel="self" type="application/atom+xml"/>
<author>

<name>Tyler Cipriani</name>

</author>




<id>https://tylercipriani.com/tags/pgp/</id>

<subtitle type="html">Tyler Cipriani</subtitle>
<generator uri="http://ikiwiki.info/">ikiwiki</generator>
<updated>2017-02-14T15:11:05Z</updated>
<entry>
	<title>GPG Security things</title>

	<id>https://tylercipriani.com/blog/2016/09/02/gpg-subkeys/</id>

	<link href="https://tylercipriani.com/blog/2016/09/02/gpg-subkeys/"/>

	<author><name>Tyler Cipriani</name></author>


	<rights type="html" xml:lang="en">

		Creative Commons Attribution-ShareAlike License
		Copyright © 2017 Tyler Cipriani

	</rights>



	<category term="computing" />

	<category term="crypto" />

	<category term="notes" />

	<category term="pgp" />


	<updated>2017-02-14T15:11:05Z</updated>
	<published>2016-09-02T23:29:05Z</published>


	<content type="html" xml:lang="en">
	&lt;section id=&quot;revocation-cert&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Revocation Cert &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#revocation-cert&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Needed to revoke your key should the master signing/certifying key ever be compromised&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb1&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt; --output &lt;span class=&quot;dt&quot;&gt;\&amp;lt;&lt;/span&gt;tyler@tylercipriani.com&lt;span class=&quot;dt&quot;&gt;\&amp;gt;&lt;/span&gt;.gpg-revocation-certificate --gen-revoke tyler@tylercipriani.com&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-2&quot; title=&quot;2&quot;&gt;&lt;span class=&quot;fu&quot;&gt;lpr&lt;/span&gt; &lt;span class=&quot;dt&quot;&gt;\&amp;lt;&lt;/span&gt;tyler@tylercipriani.com&lt;span class=&quot;dt&quot;&gt;\&amp;gt;&lt;/span&gt;.gpg-revocation-certificate&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-3&quot; title=&quot;3&quot;&gt;&lt;span class=&quot;fu&quot;&gt;shred&lt;/span&gt; --remove &lt;span class=&quot;dt&quot;&gt;\&amp;lt;&lt;/span&gt;tyler@tylercipriani.com&lt;span class=&quot;dt&quot;&gt;\&amp;gt;&lt;/span&gt;.gpg-revocation-certificate&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;store printed revocation cert in file or safe-deposit box&lt;/p&gt;
&lt;/section&gt;
&lt;section id=&quot;key-backup&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Key backup &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#key-backup&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://www.jabberwocky.com/software/paperkey/&quot;&gt;Paperkey&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Download paperkey and its gpg signature&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb2&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb2-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;fu&quot;&gt;wget&lt;/span&gt; -c http://www.jabberwocky.com/software/paperkey/paperkey-1.3.tar.gz&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb2-2&quot; title=&quot;2&quot;&gt;&lt;span class=&quot;fu&quot;&gt;wget&lt;/span&gt; -c http://www.jabberwocky.com/software/paperkey/paperkey-1.3.tar.gz.sig&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Get David Shaw&#39;s public key (0x99242560) from your keyserver of choice&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb3&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb3-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt; --search-keys &lt;span class=&quot;st&quot;&gt;&amp;#39;dshaw@jabberwocky.com&amp;#39;&lt;/span&gt;&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Verify you have downloaded the right paper key and that the level of trust is sufficient for your purposes&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb4&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt; --verify Downloads/paperkey-1.3.tar.gz.sig paperkey-1.3.tar.gz&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-2&quot; title=&quot;2&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt;: Signature made Thu 03 Jan 2013 09:18:32 PM MST using RSA key ID FEA78A7AA1BC4FA4&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-3&quot; title=&quot;3&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt;: Good signature from &lt;span class=&quot;st&quot;&gt;&amp;quot;David M. Shaw &amp;lt;dshaw@jabberwocky.com&amp;gt;&amp;quot;&lt;/span&gt; [unknown]&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-4&quot; title=&quot;4&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt;: WARNING: This key is not certified with a trusted signature!&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-5&quot; title=&quot;5&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt;:          There is no indication that the signature belongs to the owner.&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-6&quot; title=&quot;6&quot;&gt;&lt;span class=&quot;ex&quot;&gt;Primary&lt;/span&gt; key fingerprint: 7D92 FD31 3AB6 F373 4CC5  9CA1 DB69 8D71 9924 2560&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-7&quot; title=&quot;7&quot;&gt;     &lt;span class=&quot;ex&quot;&gt;Subkey&lt;/span&gt; fingerprint: A154 3829 812C 9EA9 87F1  4526 FEA7 8A7A A1BC 4FA4&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;If you have a good signature from davidExtract and install&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb5&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb5-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;fu&quot;&gt;tar&lt;/span&gt; xvzf paperkey-1.3.tar.gz&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb5-2&quot; title=&quot;2&quot;&gt;&lt;span class=&quot;fu&quot;&gt;rm&lt;/span&gt; paperkey-1.3.tar.gz&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb5-3&quot; title=&quot;3&quot;&gt;&lt;span class=&quot;bu&quot;&gt;cd&lt;/span&gt; paperkey-1.3&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb5-4&quot; title=&quot;4&quot;&gt;&lt;span class=&quot;ex&quot;&gt;./configure&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb5-5&quot; title=&quot;5&quot;&gt;&lt;span class=&quot;fu&quot;&gt;make&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb5-6&quot; title=&quot;6&quot;&gt;&lt;span class=&quot;fu&quot;&gt;sudo&lt;/span&gt; make install&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Print you secret key&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb6&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb6-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt; --export-secret-key tyler@tylercipriani.com &lt;span class=&quot;kw&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;ex&quot;&gt;paperkey&lt;/span&gt; &lt;span class=&quot;kw&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;fu&quot;&gt;lpr&lt;/span&gt;&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Store it in your file or safe-deposit-box&lt;/p&gt;
&lt;/section&gt;
&lt;section id=&quot;subkeys&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Subkeys &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#subkeys&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://alexcabal.com/creating-the-perfect-gpg-keypair/&quot;&gt;Good Resource&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;By default, GnuPG creates a key for signing and an encryption subkey:&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb7&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb7-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt; --list-keys tyler&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr class=&quot;odd&quot;&gt;
&lt;td&gt;pub&lt;/td&gt;
&lt;td&gt;rsa4096&lt;/td&gt;
&lt;td&gt;2014-02-19&lt;/td&gt;
&lt;td&gt;[SC]&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;even&quot;&gt;
&lt;td&gt;6237D8D3ECC1AE918729296FF6DAD285018FAC02&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;odd&quot;&gt;
&lt;td&gt;uid&lt;/td&gt;
&lt;td&gt;[ultimate]&lt;/td&gt;
&lt;td&gt;Tyler&lt;/td&gt;
&lt;td&gt;Cipriani&lt;/td&gt;
&lt;td&gt;&amp;lt;tyler@tylercipriani.com&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;even&quot;&gt;
&lt;td&gt;sub&lt;/td&gt;
&lt;td&gt;rsa4096&lt;/td&gt;
&lt;td&gt;2014-02-19&lt;/td&gt;
&lt;td&gt;[E]&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;odd&quot;&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;You can add a new subkey with the command&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb8&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb8-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt; --edit-key tyler&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb8-2&quot; title=&quot;2&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt;&lt;span class=&quot;op&quot;&gt;&amp;gt;&lt;/span&gt; addkey&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;And then you should see&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb9&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb9-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt; --list-keys tyler&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr class=&quot;odd&quot;&gt;
&lt;td&gt;pub&lt;/td&gt;
&lt;td&gt;rsa4096&lt;/td&gt;
&lt;td&gt;2014-02-19&lt;/td&gt;
&lt;td&gt;[SC]&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;even&quot;&gt;
&lt;td&gt;6237D8D3ECC1AE918729296FF6DAD285018FAC02&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;odd&quot;&gt;
&lt;td&gt;uid&lt;/td&gt;
&lt;td&gt;[ultimate]&lt;/td&gt;
&lt;td&gt;Tyler&lt;/td&gt;
&lt;td&gt;Cipriani&lt;/td&gt;
&lt;td&gt;&amp;lt;tyler@tylercipriani.com&amp;gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;even&quot;&gt;
&lt;td&gt;sub&lt;/td&gt;
&lt;td&gt;rsa4096&lt;/td&gt;
&lt;td&gt;2014-02-19&lt;/td&gt;
&lt;td&gt;[E]&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;odd&quot;&gt;
&lt;td&gt;sub&lt;/td&gt;
&lt;td&gt;rsa4096&lt;/td&gt;
&lt;td&gt;2016-09-02&lt;/td&gt;
&lt;td&gt;[S]&lt;/td&gt;
&lt;td&gt;[expires:&lt;/td&gt;
&lt;td&gt;2018-09-02]&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;even&quot;&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;You can then remove your certification master key (make sure you&#39;ve gone through the &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#key-backup&quot;&gt;key backup&lt;/a&gt; process before you do this!)&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Export all your secret subkeys&lt;/li&gt;
&lt;li&gt;Remove all your secret keys from your keyring&lt;/li&gt;
&lt;li&gt;Reimport only your subkeys&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb10&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb10-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt; --export-secret-subkeys tyler &lt;span class=&quot;op&quot;&gt;&amp;gt;&lt;/span&gt; subkeys&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb10-2&quot; title=&quot;2&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt; --delete-secret-key tyler&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb10-3&quot; title=&quot;3&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt; --import subkeys&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb10-4&quot; title=&quot;4&quot;&gt;&lt;span class=&quot;fu&quot;&gt;shred&lt;/span&gt; --remove subkeys&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Now &lt;code&gt;gpg --list-keys&lt;/code&gt; shows a &lt;code&gt;#&lt;/code&gt; next to &lt;code&gt;sec#&lt;/code&gt; next to my &lt;code&gt;[SC]&lt;/code&gt; key. This indicates that the key is no longer accessible.&lt;/p&gt;
&lt;/section&gt;

	</content>


	<link rel="comments" href="//tylercipriani.com/blog/2016/09/02/gpg-subkeys/#comments" type="text/html" />


	<link rel="comments" href="//tylercipriani.com/blog/2016/09/02/gpg-subkeys/comments.atom" type="application/atom+xml" />

</entry>
<entry>
	<title>GPG Things</title>

	<id>https://tylercipriani.com/blog/2015/12/02/gpg/</id>

	<link href="https://tylercipriani.com/blog/2015/12/02/gpg/"/>

	<author><name>Tyler Cipriani</name></author>


	<rights type="html" xml:lang="en">

		Creative Commons Attribution-ShareAlike License
		Copyright © 2017 Tyler Cipriani

	</rights>



	<category term="computing" />

	<category term="crypto" />

	<category term="notes" />

	<category term="pgp" />


	<updated>2017-02-14T15:11:05Z</updated>
	<published>2015-12-03T00:27:40Z</published>


	<content type="html" xml:lang="en">
	&lt;section id=&quot;get-your-fingerprint&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Get your fingerprint: &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#get-your-fingerprint&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb1&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt; --list-secret-keys --fingerprint&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;get-someone-elses-key&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Get someone elses key &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#get-someone-elses-key&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;
&lt;section id=&quot;using-email&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Using email &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#using-email&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb2&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb2-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg2&lt;/span&gt; --search-keys EMAIL&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;using-keyid&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Using keyid &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#using-keyid&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb3&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb3-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg2&lt;/span&gt; --recv-key KEYID&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;sign-keys&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Sign keys &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#sign-keys&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb4&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg2&lt;/span&gt; --recv-key KEYID&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-2&quot; title=&quot;2&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg2&lt;/span&gt; --sign-key KEYID&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-3&quot; title=&quot;3&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg2&lt;/span&gt; --send-key KEYID&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;photos&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Photos &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#photos&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;
&lt;section id=&quot;view-someones-photo&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;View someone&#39;s photo &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#view-someones-photo&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb5&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb5-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt; --edit-key KEYID showphoto&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;add-a-photo&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Add a photo &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#add-a-photo&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Suggested image sizes are 240x288 pixels (GnuPG) or 120x144 pixels (PGP) to make a JPEG of 4K-6K in size. A 1.2 h:w ratio &lt;code&gt;w = h / (144 / 120)&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb6&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb6-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt; --edit-key KEYID addphoto&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;keysigning-party-etherpad&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Keysigning party etherpad &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#keysigning-party-etherpad&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;
&lt;section id=&quot;to-sign-keys&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;To Sign keys &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#to-sign-keys&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb7&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb7-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg2&lt;/span&gt; --recv-key KEYID&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb7-2&quot; title=&quot;2&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg2&lt;/span&gt; --sign-key KEYID&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb7-3&quot; title=&quot;3&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg2&lt;/span&gt; --send-key KEYID&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;script-to-quickly-sign-all-keys&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Script to quickly sign all keys &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#script-to-quickly-sign-all-keys&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb8&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb8-1&quot; title=&quot;1&quot;&gt; &lt;span class=&quot;kw&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;ex&quot;&gt;k&lt;/span&gt; in &lt;span class=&quot;va&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;fu&quot;&gt;grep&lt;/span&gt; pub ksp-wmf-20160108.txt &lt;span class=&quot;kw&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;fu&quot;&gt;awk&lt;/span&gt; &lt;span class=&quot;st&quot;&gt;&amp;#39;{print $2}&amp;#39;&lt;/span&gt; &lt;span class=&quot;kw&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;fu&quot;&gt;awk&lt;/span&gt; -F &lt;span class=&quot;st&quot;&gt;&amp;#39;/&amp;#39;&lt;/span&gt; &lt;span class=&quot;st&quot;&gt;&amp;#39;{print $2}&amp;#39;&lt;/span&gt;&lt;span class=&quot;va&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;kw&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;kw&quot;&gt;do&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb8-2&quot; title=&quot;2&quot;&gt;    &lt;span class=&quot;bu&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st&quot;&gt;&amp;quot;Receiving &lt;/span&gt;&lt;span class=&quot;va&quot;&gt;$k&lt;/span&gt;&lt;span class=&quot;st&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb8-3&quot; title=&quot;3&quot;&gt;    &lt;span class=&quot;ex&quot;&gt;gpg2&lt;/span&gt; --recv-key &lt;span class=&quot;va&quot;&gt;$k&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb8-4&quot; title=&quot;4&quot;&gt;    &lt;span class=&quot;bu&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st&quot;&gt;&amp;quot;Signing key &lt;/span&gt;&lt;span class=&quot;va&quot;&gt;$k&lt;/span&gt;&lt;span class=&quot;st&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb8-5&quot; title=&quot;5&quot;&gt;    &lt;span class=&quot;ex&quot;&gt;gpg2&lt;/span&gt; --sign-key &lt;span class=&quot;va&quot;&gt;$k&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb8-6&quot; title=&quot;6&quot;&gt;    &lt;span class=&quot;bu&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st&quot;&gt;&amp;quot;Sending key &lt;/span&gt;&lt;span class=&quot;va&quot;&gt;$k&lt;/span&gt;&lt;span class=&quot;st&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb8-7&quot; title=&quot;7&quot;&gt;    &lt;span class=&quot;ex&quot;&gt;gpg2&lt;/span&gt; --send-key &lt;span class=&quot;va&quot;&gt;$k&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb8-8&quot; title=&quot;8&quot;&gt;&lt;span class=&quot;kw&quot;&gt;done&lt;/span&gt;&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;if-you-need-a-key-get-help&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;IF YOU NEED A KEY, GET HELP!! &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#if-you-need-a-key-get-help&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;
&lt;section id=&quot;resources&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Resources &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#resources&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;PGP/GPG Intro&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://ssd.eff.org/en/module/introduction-public-key-cryptography-and-pgp&quot;&gt;https://ssd.eff.org/en/module/introduction-public-key-cryptography-and-pgp&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ssd.eff.org/en/module/how-use-pgp-mac-os-x&quot;&gt;https://ssd.eff.org/en/module/how-use-pgp-mac-os-x&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;OpenPGP Best practices&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://help.riseup.net/en/gpg-best-practices&quot;&gt;https://help.riseup.net/en/gpg-best-practices&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://help.riseup.net/en/security/message-security/openpgp/gpg-keys&quot;&gt;https://help.riseup.net/en/security/message-security/openpgp/gpg-keys&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://web.monkeysphere.info/monkeysign/&quot;&gt;http://web.monkeysphere.info/monkeysign/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id=&quot;wmf-keysigning&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;WMF Keysigning &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#wmf-keysigning&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://people.wikimedia.org/~faidon/ksp-wmf-20160108.txt&quot;&gt;https://people.wikimedia.org/~faidon/ksp-wmf-20160108.txt&lt;/a&gt;&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb9&quot;&gt;&lt;pre class=&quot;sourceCode txt&quot;&gt;&lt;code class=&quot;sourceCode default&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb9-1&quot; title=&quot;1&quot;&gt;SHA256 Checksum: 52F2 CF39   6A54 6D56   7F55 7138   7264 11BA&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb9-2&quot; title=&quot;2&quot;&gt;                    AEE3 F34E   8880 681C   9A67 75D1   3BBC 74DC              [ ]&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb9-3&quot; title=&quot;3&quot;&gt;                    52F2CF39 6A546D56 7F557138 726411BA AEE3F34E 8880681C 9A6775D1 3BBC74DC&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb9-4&quot; title=&quot;4&quot;&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb9-5&quot; title=&quot;5&quot;&gt;                    RIPEMD160 Checksum: BB44 91B6 0A4D 5865 2105    2A4C 19FB 11AD 8BCC C3C3    [ ]&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb9-6&quot; title=&quot;6&quot;&gt;                    BB44 91B6 0A4D 5865 2105  2A4C 19FB 11AD 8BCC C3C3&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;mutt-problems&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Mutt problems &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#mutt-problems&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;
&lt;section id=&quot;cant-query-passphrase-in-batch-mode&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;&quot;can&#39;t query passphrase in batch mode&quot; &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#cant-query-passphrase-in-batch-mode&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Uncomment, &lt;code&gt;use agent&lt;/code&gt; in &lt;code&gt;~/.gnupg/gpg.conf&lt;/code&gt;&lt;/p&gt;
&lt;/section&gt;
&lt;section id=&quot;pass-problems&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Pass problems &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#pass-problems&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;
&lt;section id=&quot;no-secret-key&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;No Secret Key &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#no-secret-key&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;
&lt;section id=&quot;problem&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Problem &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#problem&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb10&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb10-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;gpg&lt;/span&gt;: decryption failed: No secret key&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;solution&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Solution &lt;a href=&quot;https://tylercipriani.com/tags/pgp/#solution&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;install &lt;code&gt;pinentry-curses&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;~/.gnupg/gpg-agent.conf&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;code&gt;pinentry-program /usr/bin/pinentry
&lt;/code&gt;&lt;/pre&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;gpg-connect-agent reloadagent /bye&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;

	</content>


	<link rel="comments" href="//tylercipriani.com/blog/2015/12/02/gpg/#comments" type="text/html" />


	<link rel="comments" href="//tylercipriani.com/blog/2015/12/02/gpg/comments.atom" type="application/atom+xml" />

</entry>

</feed>
