<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: GnuPG Up And Close</title>
	<atom:link href="http://pthree.org/2009/06/08/gnupg-up-and-close/feed/" rel="self" type="application/rss+xml" />
	<link>http://pthree.org/2009/06/08/gnupg-up-and-close/</link>
	<description>Linux.  GNU.  Freedom.</description>
	<lastBuildDate>Fri, 17 May 2013 20:46:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6-beta2-24176</generator>
	<item>
		<title>By: Anonymous</title>
		<link>http://pthree.org/2009/06/08/gnupg-up-and-close/#comment-117187</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 21 Nov 2012 17:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1069#comment-117187</guid>
		<description><![CDATA[So helpful, thank you.]]></description>
		<content:encoded><![CDATA[<p>So helpful, thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hhhobbit</title>
		<link>http://pthree.org/2009/06/08/gnupg-up-and-close/#comment-110912</link>
		<dc:creator>hhhobbit</dc:creator>
		<pubDate>Wed, 26 May 2010 06:36:12 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1069#comment-110912</guid>
		<description><![CDATA[Matt: Precisely what do you mean by a clear-sign of a file?  Do you mean the --clearsign or a --detach-sign (-b)?  I am assuming the first.  In cases where GnuPG can not determine who the recipient is (use of the clear-sign without using either --recipient or --default-recipient) it defaults to the lowest common denominator.  When the recipient is known (you are specifying the recipient key) then it follows their list of preferences until it finds one your software can do.  Example.  I do detached sigs on the files distributed on my web-site.  I don&#039;t know who is going to use those detached sig files in advance.  Here is my digest list (and at one time I had SHA1 first to avoid problems but I REALLY did not like it!):

SHA512, SHA384, SHA256, SHA1

Okay, let me sign the gpg2.1 man page (formatted so I can find things):
I actually have scripts to do a lot of this so here is the actual command in the script:

${GPG} --default-key ${KEYID} --output ${FILE}.sig --detach-sign $FILE

Here are the scripts:

http://www.SecureMecca.com/public/GnuPG-Scripts.7z
http://www.SecureMecca.com/public/GnuPG-Scripts.zip

The scripts saves on typing.  Okay, what HASH did I use? Since the default is I am using MY key I don&#039;t care what somebody else can handle (nobody has complained but in reality for a long time I have had it as SHA1 first just to avoid the complaints):

$ gpg2 -v --verify gpg2.1.sig
gpg: assuming signed data in `gpg2.1&#039;
gpg: Signature made Wed 26 May 2010 06:15:36 AM UTC using RSA key ID 954D820D
gpg: using PGP trust model
gpg: Good signature from &quot;Henry Hertz Hobbit &quot;
gpg:                 aka &quot;Henry Hertz Hobbit &quot;
gpg:                 aka &quot;Henry Hertz Hobbit &quot;
gpg: binary signature, digest algorithm SHA512

It is done this way in the example you gave because when you are signing a message sent to you it follows what you asked for.  You want SHA-512 first so that is what it gave you.  You can over-ride it with an explicit --digest-algo but I would not do it because it violates the OpenPGP standard.  Give the actual command you use to clear-sign a file and people (others, not me) will better be able to help you.  I assume you already answered this for yourself by now.]]></description>
		<content:encoded><![CDATA[<p>Matt: Precisely what do you mean by a clear-sign of a file?  Do you mean the &#8211;clearsign or a &#8211;detach-sign (-b)?  I am assuming the first.  In cases where GnuPG can not determine who the recipient is (use of the clear-sign without using either &#8211;recipient or &#8211;default-recipient) it defaults to the lowest common denominator.  When the recipient is known (you are specifying the recipient key) then it follows their list of preferences until it finds one your software can do.  Example.  I do detached sigs on the files distributed on my web-site.  I don&#8217;t know who is going to use those detached sig files in advance.  Here is my digest list (and at one time I had SHA1 first to avoid problems but I REALLY did not like it!):</p>
<p>SHA512, SHA384, SHA256, SHA1</p>
<p>Okay, let me sign the gpg2.1 man page (formatted so I can find things):<br />
I actually have scripts to do a lot of this so here is the actual command in the script:</p>
<p>${GPG} &#8211;default-key ${KEYID} &#8211;output ${FILE}.sig &#8211;detach-sign $FILE</p>
<p>Here are the scripts:</p>
<p><a href="http://www.SecureMecca.com/public/GnuPG-Scripts.7z" rel="nofollow">http://www.SecureMecca.com/public/GnuPG-Scripts.7z</a><br />
<a href="http://www.SecureMecca.com/public/GnuPG-Scripts.zip" rel="nofollow">http://www.SecureMecca.com/public/GnuPG-Scripts.zip</a></p>
<p>The scripts saves on typing.  Okay, what HASH did I use? Since the default is I am using MY key I don&#8217;t care what somebody else can handle (nobody has complained but in reality for a long time I have had it as SHA1 first just to avoid the complaints):</p>
<p>$ gpg2 -v &#8211;verify gpg2.1.sig<br />
gpg: assuming signed data in `gpg2.1&#8242;<br />
gpg: Signature made Wed 26 May 2010 06:15:36 AM UTC using RSA key ID 954D820D<br />
gpg: using PGP trust model<br />
gpg: Good signature from &#8220;Henry Hertz Hobbit &#8221;<br />
gpg:                 aka &#8220;Henry Hertz Hobbit &#8221;<br />
gpg:                 aka &#8220;Henry Hertz Hobbit &#8221;<br />
gpg: binary signature, digest algorithm SHA512</p>
<p>It is done this way in the example you gave because when you are signing a message sent to you it follows what you asked for.  You want SHA-512 first so that is what it gave you.  You can over-ride it with an explicit &#8211;digest-algo but I would not do it because it violates the OpenPGP standard.  Give the actual command you use to clear-sign a file and people (others, not me) will better be able to help you.  I assume you already answered this for yourself by now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://pthree.org/2009/06/08/gnupg-up-and-close/#comment-110851</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sat, 08 May 2010 05:17:43 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1069#comment-110851</guid>
		<description><![CDATA[Thanks for this post. It&#039;s been helpful. However, I cannot determine why SHA1 is used when I clear-sign a file even though SHA1 is listed last in my preferences. What&#039;s even stranger is that when I send a signed email, SHA512 is used as expected. What am I missing? My pasted my preferences below. Thanks!

default-preference-list TWOFISH AES256 AES192 AES BLOWFISH 3DES SHA512 SHA384 SHA256 SHA224 SHA1 BZIP2 ZLIB ZIP Uncompressed
personal-cipher-preferences TWOFISH AES256 AES192 AES BLOWFISH 3DES
personal-digest-preferences SHA512 SHA384 SHA256 SHA224 SHA1
personal-compress-preferences ZLIB BZIP2 ZIP Uncompressed
cert-digest-algo SHA512


showpref
     Cipher: TWOFISH, AES256, AES192, AES, BLOWFISH, 3DES
     Digest: SHA512, SHA384, SHA256, SHA224, SHA1
     Compression: BZIP2, ZLIB, ZIP, Uncompressed
     Features: MDC, Keyserver no-modify]]></description>
		<content:encoded><![CDATA[<p>Thanks for this post. It&#8217;s been helpful. However, I cannot determine why SHA1 is used when I clear-sign a file even though SHA1 is listed last in my preferences. What&#8217;s even stranger is that when I send a signed email, SHA512 is used as expected. What am I missing? My pasted my preferences below. Thanks!</p>
<p>default-preference-list TWOFISH AES256 AES192 AES BLOWFISH 3DES SHA512 SHA384 SHA256 SHA224 SHA1 BZIP2 ZLIB ZIP Uncompressed<br />
personal-cipher-preferences TWOFISH AES256 AES192 AES BLOWFISH 3DES<br />
personal-digest-preferences SHA512 SHA384 SHA256 SHA224 SHA1<br />
personal-compress-preferences ZLIB BZIP2 ZIP Uncompressed<br />
cert-digest-algo SHA512</p>
<p>showpref<br />
     Cipher: TWOFISH, AES256, AES192, AES, BLOWFISH, 3DES<br />
     Digest: SHA512, SHA384, SHA256, SHA224, SHA1<br />
     Compression: BZIP2, ZLIB, ZIP, Uncompressed<br />
     Features: MDC, Keyserver no-modify</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maryanna</title>
		<link>http://pthree.org/2009/06/08/gnupg-up-and-close/#comment-110097</link>
		<dc:creator>maryanna</dc:creator>
		<pubDate>Wed, 19 Aug 2009 20:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1069#comment-110097</guid>
		<description><![CDATA[Aaron, now that I&#039;ve actually been able to peruse the site, I can see it is very well done and quite informative.  Also, your prompt and thorough response to my comment is appreciated.  

I didn&#039;t consider the virus/malware possibility and didn&#039;t have the time for more than a cursory glance at the source at the point when it occurred.  

This popup is new to me, and it only appears on your site (thus far), although I&#039;ve heard that Silverlight sites produce similar notifications.  You&#039;d think Microsoft wouldn&#039;t link to everyone else&#039;s browsers, though, if they were the source.  The screenshot is available, since it is IE 6 we&#039;re running, just tell me where you want it sent.  

Thank you for the details on Chrome, I&#039;ll credit you when I send the request.]]></description>
		<content:encoded><![CDATA[<p>Aaron, now that I&#8217;ve actually been able to peruse the site, I can see it is very well done and quite informative.  Also, your prompt and thorough response to my comment is appreciated.  </p>
<p>I didn&#8217;t consider the virus/malware possibility and didn&#8217;t have the time for more than a cursory glance at the source at the point when it occurred.  </p>
<p>This popup is new to me, and it only appears on your site (thus far), although I&#8217;ve heard that Silverlight sites produce similar notifications.  You&#8217;d think Microsoft wouldn&#8217;t link to everyone else&#8217;s browsers, though, if they were the source.  The screenshot is available, since it is IE 6 we&#8217;re running, just tell me where you want it sent.  </p>
<p>Thank you for the details on Chrome, I&#8217;ll credit you when I send the request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://pthree.org/2009/06/08/gnupg-up-and-close/#comment-110095</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Tue, 18 Aug 2009 20:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1069#comment-110095</guid>
		<description><![CDATA[@maryanna I don&#039;t have any popups for any browser that comes to my site. Check the source, and you&#039;ll find that the only JavaScript running on my site is for community polls in posts (no popups), UserAgent string detection for comments (no popups) and StatCounter for tracking visitors (again, no popups). If you&#039;re using IE, and getting popups, I&#039;m afraid you might have a virus or some other form of malware that is hijacking your browser. Maybe you could provide a screenshot of the popup message you&#039;re experiencing while browsing my site? I can&#039;t produce it with IE 7 or IE 8. Unfortunately, I don&#039;t have access to an IE 6 install.

Further, while I strive for standards as much as possible with this site, I make no guarantees that it will work in any browser, including text-based. However, just pulling up links2 in my terminal, and browsing the site, it seems to render rather well, and is quite readable and navigational.

Lastly, Chrome is using the rendering agent from Safari, namely KHTML. The UserAgent string identifies itself as Safari running on a Macintosh, not Google Chrome running on Windows. If this bothers you, I would suggest getting in touch with the Google Chrome development team, and submit a feature request for getting the UserAgent string changed.]]></description>
		<content:encoded><![CDATA[<p>@maryanna I don&#8217;t have any popups for any browser that comes to my site. Check the source, and you&#8217;ll find that the only JavaScript running on my site is for community polls in posts (no popups), UserAgent string detection for comments (no popups) and StatCounter for tracking visitors (again, no popups). If you&#8217;re using IE, and getting popups, I&#8217;m afraid you might have a virus or some other form of malware that is hijacking your browser. Maybe you could provide a screenshot of the popup message you&#8217;re experiencing while browsing my site? I can&#8217;t produce it with IE 7 or IE 8. Unfortunately, I don&#8217;t have access to an IE 6 install.</p>
<p>Further, while I strive for standards as much as possible with this site, I make no guarantees that it will work in any browser, including text-based. However, just pulling up links2 in my terminal, and browsing the site, it seems to render rather well, and is quite readable and navigational.</p>
<p>Lastly, Chrome is using the rendering agent from Safari, namely KHTML. The UserAgent string identifies itself as Safari running on a Macintosh, not Google Chrome running on Windows. If this bothers you, I would suggest getting in touch with the Google Chrome development team, and submit a feature request for getting the UserAgent string changed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maryanna</title>
		<link>http://pthree.org/2009/06/08/gnupg-up-and-close/#comment-110094</link>
		<dc:creator>maryanna</dc:creator>
		<pubDate>Tue, 18 Aug 2009 19:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1069#comment-110094</guid>
		<description><![CDATA[FYI, not everyone that visits your site is concerned with the &quot;best&quot; experience, so you might want to offer a way to get past that extremely annoying popup with the download links.  I happened to be at work, where there are policies regarding which versions are used, when I got to your site from a search on gpg.  I took the time to get to another environment to comment because I really wanted to see the information, but was quite irritated by not being able to get past the admonishing message while using IE.  Not to mention that there might be folks interested in the content that are using, GASP!, text-based browsers.  Oh, and, P.S.: this was generated using Chrome 2.0.172 on WinXP, not Safari 530.5 on Mac OS X.]]></description>
		<content:encoded><![CDATA[<p>FYI, not everyone that visits your site is concerned with the &#8220;best&#8221; experience, so you might want to offer a way to get past that extremely annoying popup with the download links.  I happened to be at work, where there are policies regarding which versions are used, when I got to your site from a search on gpg.  I took the time to get to another environment to comment because I really wanted to see the information, but was quite irritated by not being able to get past the admonishing message while using IE.  Not to mention that there might be folks interested in the content that are using, GASP!, text-based browsers.  Oh, and, P.S.: this was generated using Chrome 2.0.172 on WinXP, not Safari 530.5 on Mac OS X.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TSn</title>
		<link>http://pthree.org/2009/06/08/gnupg-up-and-close/#comment-110067</link>
		<dc:creator>TSn</dc:creator>
		<pubDate>Wed, 01 Jul 2009 13:43:08 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1069#comment-110067</guid>
		<description><![CDATA[Thank you for sharing! Even as a beginner in GnuPG this tutorial helped me much more than others.]]></description>
		<content:encoded><![CDATA[<p>Thank you for sharing! Even as a beginner in GnuPG this tutorial helped me much more than others.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KevDog</title>
		<link>http://pthree.org/2009/06/08/gnupg-up-and-close/#comment-110062</link>
		<dc:creator>KevDog</dc:creator>
		<pubDate>Tue, 23 Jun 2009 04:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1069#comment-110062</guid>
		<description><![CDATA[Great info.  However I think you should explain that the value set for default-preference-list is actually only used in the creation for new keys -- it sets the defaults for any new keys created with the gpg --gen-key command.  The topic of key creation was really covered in this blog, so I think to reference this command without explaining its use is a little misleading.

Beyond that the blog was really good.

I think however gpg recently changed the way they decide on what cipher and hash to use.  I think actually the personal-cipher-preference and personal-hash-preference are given priority over the recipients preferences embedded in their keys. (Please note I believe the old style way was to give priority to the preferences contained in the keys and then cross-reference the priorities with personal preferences when available.)  Also note this process is much more complicated than described above, particularly if you are sending mail for example to 3 recipients each with different algorithms specified in their keys.  You may actually want to discuss how this conundrum is handled since I find it interesting (however it might bore many users).]]></description>
		<content:encoded><![CDATA[<p>Great info.  However I think you should explain that the value set for default-preference-list is actually only used in the creation for new keys &#8212; it sets the defaults for any new keys created with the gpg &#8211;gen-key command.  The topic of key creation was really covered in this blog, so I think to reference this command without explaining its use is a little misleading.</p>
<p>Beyond that the blog was really good.</p>
<p>I think however gpg recently changed the way they decide on what cipher and hash to use.  I think actually the personal-cipher-preference and personal-hash-preference are given priority over the recipients preferences embedded in their keys. (Please note I believe the old style way was to give priority to the preferences contained in the keys and then cross-reference the priorities with personal preferences when available.)  Also note this process is much more complicated than described above, particularly if you are sending mail for example to 3 recipients each with different algorithms specified in their keys.  You may actually want to discuss how this conundrum is handled since I find it interesting (however it might bore many users).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shahryar ghazi</title>
		<link>http://pthree.org/2009/06/08/gnupg-up-and-close/#comment-110039</link>
		<dc:creator>shahryar ghazi</dc:creator>
		<pubDate>Tue, 09 Jun 2009 12:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1069#comment-110039</guid>
		<description><![CDATA[thanks for sharing]]></description>
		<content:encoded><![CDATA[<p>thanks for sharing</p>
]]></content:encoded>
	</item>
</channel>
</rss>
