<?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>No Znx! &#187; gpg</title>
	<atom:link href="http://znx.no/tag/gpg/feed/" rel="self" type="application/rss+xml" />
	<link>http://znx.no</link>
	<description>the pigeons!!!!</description>
	<lastBuildDate>Tue, 20 Dec 2011 22:42:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Import Missing GPG Keys</title>
		<link>http://znx.no/2010/01/import-missing-gpg-keys/</link>
		<comments>http://znx.no/2010/01/import-missing-gpg-keys/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 17:58:39 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://znx.no/?p=231</guid>
		<description><![CDATA[Sometimes when people are using Linux they will find that they come across a simple security check that confirms the authenticity of the RPM/Deb files that they are installing. Every so often the key is missing but that is easy to remedy. Here I will use an example with the YUM install of Adobe Flash: [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes when people are using Linux they will find that they come across a simple security check that confirms the authenticity of the RPM/Deb files that they are installing. Every so often the key is missing but that is easy to remedy. Here I will use an example with the YUM install of Adobe Flash:</p>
<pre>[root@marine]# ls
adobe-release-i386-1.0-1.noarch.rpm
[root@marine]# yum localinstall adobe-release-i386-1.0-1.noarch.rpm
Loaded plugins: fastestmirror, priorities
Setting up Local Package Process
Examining adobe-release-i386-1.0-1.noarch.rpm: adobe-release-i386-1.0-1.noarch
Marking adobe-release-i386-1.0-1.noarch.rpm to be installed
Loading mirror speeds from cached hostfile
* addons: anorien.csc.warwick.ac.uk
* base: anorien.csc.warwick.ac.uk
* centosplus: anorien.csc.warwick.ac.uk
* contrib: anorien.csc.warwick.ac.uk
* extras: anorien.csc.warwick.ac.uk
* rpmforge: fr2.rpmfind.net
* updates: anorien.csc.warwick.ac.uk
588 packages excluded due to repository priority protections
Resolving Dependencies
--&gt; Running transaction check
---&gt; Package adobe-release-i386.noarch 0:1.0-1 set to be updated
--&gt; Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package              Arch     Version Repository                          Size
================================================================================
Installing:
adobe-release-i386   noarch   1.0-1   /adobe-release-i386-1.0-1.noarch   1.9 k

Transaction Summary
================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total size: 1.9 k
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID f6777c67

Public key for adobe-release-i386-1.0-1.noarch.rpm is not installed</pre>
<p>As you can see it attempted to install but because the key was missing it refused to install. So what do we do to find that key? First we must download the key from somewhere, there is various key servers around the world, some of the most popular are (note hkp is the HTTP keyserver protocol):</p>
<ul>
<li>hkp://subkeys.pgp.net</li>
<li>hkp://pgp.mit.edu</li>
<li>hkp://keys.gnupg.net</li>
<li>hkp://wwwkeys.uk.pgp.net  (where UK can be replaced by any country code)</li>
</ul>
<p>So lets search for the missing key:</p>
<pre>[root@marine]# gpg --keyserver hkp://wwwkeys.uk.pgp.net --recv-keys f6777c67
gpg: requesting key F6777C67 from hkp server wwwkeys.uk.pgp.net
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key F6777C67: public key "Adobe Systems Incorporated (Linux RPM
  Signing Key) <secure@adobe.com>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1</pre>
<p>So now we have the key and see that it is indeed Adobe&#8217;s key. Now all we need to do is add into RPM:</p>
<pre>[root@marine]# gpg --armor --export f6777c67 >tmp-gpg.key
[root@marine]# rpm --import tmp-gpg.key</pre>
<p>Simple as that, the install will work now!</p>
<p>This post is a refreshed look at a <a href='http://znx.no/2009/08/gpg-errors/'>previous</a> post on the same matter.</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2010/01/import-missing-gpg-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GPG Errors</title>
		<link>http://znx.no/2009/08/gpg-errors/</link>
		<comments>http://znx.no/2009/08/gpg-errors/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 21:47:23 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[gpg]]></category>

		<guid isPermaLink="false">http://znx.no/?p=142</guid>
		<description><![CDATA[Sometimes when you are installing RPM&#8217;s or Deb&#8217;s you will find yourself faced with GPG errors. Instead of ignoring them why not fix them! Simply download the key by using the GPG tool: gpg --keyserver pgpkeys.mit.edu --recv-key E6F33B6628973CC0 Then import that key into either apt: gpg -a --export 010908312D230C5F &#124; sudo apt-key add - Or [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes when you are installing RPM&#8217;s or Deb&#8217;s you will find yourself faced with GPG errors. Instead of ignoring them why not fix them!</p>
<p>Simply download the key by using the GPG tool:</p>
<pre>gpg --keyserver pgpkeys.mit.edu --recv-key E6F33B6628973CC0</pre>
<p>Then import that key into either apt:</p>
<pre>gpg -a --export 010908312D230C5F | sudo apt-key add -</pre>
<p>Or rpm:</p>
<pre>gpg --export -a 010908312D230C5F >key.txt
rpm --import key.txt</pre>
<p>Simple!</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2009/08/gpg-errors/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

