<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>x2on.de &#187; GnuPG2</title>
	<atom:link href="http://www.x2on.de/tag/gnupg2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x2on.de</link>
	<description>by Felix Schulze - a mobile evangelist. Tutorials for iOS, Android, Mac, Linux, iPhone and more...</description>
	<lastBuildDate>Sun, 29 Jan 2012 18:46:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Tutorial: GnuPG 2.0.13 unter Mac OS X 10.6</title>
		<link>http://www.x2on.de/2009/11/24/tutorial-gnupg-2-0-13-unter-mac-os-x-10-6/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tutorial-gnupg-2-0-13-unter-mac-os-x-10-6</link>
		<comments>http://www.x2on.de/2009/11/24/tutorial-gnupg-2-0-13-unter-mac-os-x-10-6/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 17:38:50 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Enigmail]]></category>
		<category><![CDATA[GnuPG]]></category>
		<category><![CDATA[GnuPG2]]></category>
		<category><![CDATA[MacGPG]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[PGP]]></category>
		<category><![CDATA[Pinentry]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=344</guid>
		<description><![CDATA[Die neue Version GnuPG 2 ist schwieriger zu kompilieren als die alte 1.4er Version. Desweiteren wird ein Pinentry Programm benötigt, um die Passphrase des verwendeten PGP-Schlüssels abzufragen. Ich verwende hierfür eine angepasste Version aus dem MacGPG-Bundle (basierend auf pinentry 0.7.6) Um GnuPG2 kompilieren zu können, muss XCode installiert sein. UPDATE: Libcrypt 1.4.5 wurde veröffentlicht und [...]]]></description>
			<content:encoded><![CDATA[<p>Die neue Version GnuPG 2 ist schwieriger zu kompilieren als die alte 1.4er Version.<br />
Desweiteren wird ein Pinentry Programm benötigt, um die Passphrase des verwendeten PGP-Schlüssels abzufragen.<br />
Ich verwende hierfür eine angepasste Version aus dem MacGPG-Bundle (basierend auf pinentry 0.7.6)<br />
Um GnuPG2 kompilieren zu können, muss XCode installiert sein.</p>
<p><strong>UPDATE:</strong> Libcrypt 1.4.5 wurde veröffentlicht und wird in dem Tutorial nun berücksichtigt.<br />
<strong>UPDATE 2:</strong> GnuPG 2.0.14 wurde veröffentlicht, die vorgehensweise ist analog zu der Version 2.0.13<br />
<span id="more-344"></span></p>
<p><strong>1. Die für GnuPG2 benötigten Libaries kompilieren:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib
<span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.gnupg.org<span style="color: #000000; font-weight: bold;">/</span>gcrypt<span style="color: #000000; font-weight: bold;">/</span>libgpg-error<span style="color: #000000; font-weight: bold;">/</span>libgpg-error-<span style="color: #000000;">1.7</span>.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">tar</span> xfvj libgpg-error-<span style="color: #000000;">1.7</span>.tar.bz2
<span style="color: #7a0874; font-weight: bold;">cd</span> libgpg-error-<span style="color: #000000;">1.7</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> build
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #007800;">CC</span>=<span style="color: #ff0000;">&quot;gcc -arch i386&quot;</span> <span style="color: #660033;">--prefix</span>=~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libgpg-error-<span style="color: #000000;">1.7</span><span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> ..
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.gnupg.org<span style="color: #000000; font-weight: bold;">/</span>gcrypt<span style="color: #000000; font-weight: bold;">/</span>libgcrypt<span style="color: #000000; font-weight: bold;">/</span>libgcrypt-1.4.5.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">tar</span> xfvj libgcrypt-1.4.5.tar.bz2
<span style="color: #7a0874; font-weight: bold;">cd</span> libgcrypt-1.4.5
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> build
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #007800;">CC</span>=<span style="color: #ff0000;">&quot;gcc -arch i386&quot;</span> <span style="color: #660033;">--prefix</span>=~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libgcrypt-1.4.5<span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">--with-gpg-error-prefix</span>=~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libgpg-error-<span style="color: #000000;">1.7</span><span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> ..
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.gnupg.org<span style="color: #000000; font-weight: bold;">/</span>gcrypt<span style="color: #000000; font-weight: bold;">/</span>libksba<span style="color: #000000; font-weight: bold;">/</span>libksba-1.0.7.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">tar</span> xfvj libksba-1.0.7.tar.bz2
<span style="color: #7a0874; font-weight: bold;">cd</span> libksba-1.0.7
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> build
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #007800;">CC</span>=<span style="color: #ff0000;">&quot;gcc -arch i386&quot;</span>  <span style="color: #660033;">--prefix</span>=~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libksba-1.0.7<span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">--with-gpg-error-prefix</span>=~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libgpg-error-<span style="color: #000000;">1.7</span><span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> ..
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.gnu.org<span style="color: #000000; font-weight: bold;">/</span>gnu<span style="color: #000000; font-weight: bold;">/</span>pth<span style="color: #000000; font-weight: bold;">/</span>pth-2.0.7.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz pth-2.0.7.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> pth-2.0.7
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> build
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #007800;">CC</span>=<span style="color: #ff0000;">&quot;gcc -arch i386&quot;</span>  <span style="color: #660033;">--prefix</span>=~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>pth-2.0.7<span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> ..
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.gnupg.org<span style="color: #000000; font-weight: bold;">/</span>gcrypt<span style="color: #000000; font-weight: bold;">/</span>libassuan<span style="color: #000000; font-weight: bold;">/</span>libassuan-1.0.5.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">tar</span> xfvj libassuan-1.0.5.tar.bz2
<span style="color: #7a0874; font-weight: bold;">cd</span> libassuan-1.0.5
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> build
.<span style="color: #000000; font-weight: bold;">/</span>configure  <span style="color: #007800;">CC</span>=<span style="color: #ff0000;">&quot;gcc -arch i386&quot;</span> <span style="color: #660033;">--prefix</span>=~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libassuan-1.0.5<span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">--with-pth-prefix</span>=~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>pth-2.0.7<span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> ..</pre></div></div>

<p><strong>2. GnuPG2 kompilieren:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ..
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.gnupg.org<span style="color: #000000; font-weight: bold;">/</span>gcrypt<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>gnupg-2.0.13.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">tar</span> xfvji gnupg-2.0.13.tar.bz2
<span style="color: #7a0874; font-weight: bold;">cd</span> gnupg-2.0.13
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #007800;">CC</span>=<span style="color: #ff0000;">&quot;gcc -arch i386&quot;</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>gnupg <span style="color: #660033;">--with-gpg-error-prefix</span>=~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libgpg-error-<span style="color: #000000;">1.7</span><span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">--with-libgcrypt-prefix</span>=~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libgcrypt-1.4.5<span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">--with-libassuan-prefix</span>=~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libassuan-1.0.5<span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">--with-ksba-prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libksba-1.0.7<span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">--with-pth-prefix</span>=~<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>pth-2.0.7<span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;export PATH=/opt/gnupg/bin:<span style="color: #007800;">$PATH</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>.profile</pre></div></div>

<p><strong>3. Pinentry installieren:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.x2on.de<span style="color: #000000; font-weight: bold;">/</span>dl<span style="color: #000000; font-weight: bold;">/</span>pinentry-mac-binary_0-<span style="color: #000000;">2</span>.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz pinentry-mac-binary_0-<span style="color: #000000;">2</span>.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> pinentry-mac-binary_0-<span style="color: #000000;">2</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> pinentry-mac.app <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>gnupg<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p><strong>4. Einstellungen für Pinentry vornehmen:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;pinentry-program /opt/gnupg/pinentry-mac.app/Contents/MacOS/pinentry-mac&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>.gnupg<span style="color: #000000; font-weight: bold;">/</span>gpg-agent.conf</pre></div></div>

<p><img class="alignnone size-thumbnail wp-image-358" title="pinentry-mac Dialog" src="http://localhost/wordpress/wp-content/uploads/2009/11/pinentry-mac.png" alt="pinentry-mac Dialog" /></p>
<p><strong>Sourcecode pinentry-mac:</strong> <a href="http://www.x2on.de/dl/pinentry-mac_0-2.tar.gz">Download</a></p>
<p><strong>Links:</strong></p>
<ul>
<li><a href="http://sourceforge.net/projects/macgpg/">http://sourceforge.net/projects/macgpg/</a></li>
<li><a href="http://www.gnupg.org/">http://www.gnupg.org/</a></li>
<li><a href="ftp://ftp.gnupg.org/gcrypt/pinentry/">ftp://ftp.gnupg.org/gcrypt/pinentry/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2009/11/24/tutorial-gnupg-2-0-13-unter-mac-os-x-10-6/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

