<p dir="ltr">You <a href="http://need.to">need.to</a> put the key in a location on your satellite server where all clients.can connect and see.that file.  Then you <a href="http://need.to">need.to</a> update you .repo file where the package is stored and.set the gpgkey url to that location on the server using the /// path</p>
<div class="gmail_quote">On Sep 8, 2014 7:01 AM, "Nicolas Michel" <<a href="mailto:be.nicolas.michel@gmail.com">be.nicolas.michel@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I'm starting to try spacewalk (21). I configured the epel repository. When trying to install some packages on the client OS configured with the spacewalk repositories, it fails saying it can't find the GPG key:</div><div><div>    warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY</div><div><br></div><div><br></div><div>    Public key for jabberpy-0.5-0.21.el6.noarch.rpm is not installed</div><div><br></div><div>I found the GPG here : <a href="http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6" target="_blank">http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6</a> and copied it on my spacewalk server in /var/www/html/pub. So the URL is <a href="https://my_spacewalk_server/pub/RPM-GPG-KEY-EPEL-6" target="_blank">https://my_spacewalk_server/pub/RPM-GPG-KEY-EPEL-6</a> (I can see it with my browser so it is reachable).</div><div><br></div><div>Then on spacewalk I setup the:</div><div><span style="text-align:right">- </span><span style="text-align:right;font-size:13px;color:rgb(64,64,64);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-weight:bold;line-height:18.5714302062988px;background-color:rgb(247,247,247)">GPG key URL:</span><font color="#404040" face="Helvetica Neue, Helvetica, Arial, sans-serif" style="text-align:right"><span style="line-height:18.5714302062988px"><b>https://</b></span></font>my_spacewalk_server<font color="#404040" face="Helvetica Neue, Helvetica, Arial, sans-serif" style="text-align:right"><span style="line-height:18.5714302062988px"><b>/pub/RPM-GPG-KEY-EPEL-6</b></span></font></div><div><span style="color:rgb(64,64,64);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;font-weight:bold;line-height:18.5714302062988px;text-align:right;background-color:rgb(247,247,247)">- </span><span style="color:rgb(64,64,64);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;font-weight:bold;line-height:18.5714302062988px;text-align:right;background-color:rgb(247,247,247)">GPG key ID: </span><font color="#404040" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="line-height:18.5714302062988px"><b>0608B895</b></span></font></div><div><span style="color:rgb(64,64,64);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;font-weight:bold;line-height:18.5714302062988px;text-align:right;background-color:rgb(247,247,247)">- GPG key Fingerprint: </span><font color="#404040" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="line-height:18.5714302062988px"><b>8C3B E96A F230 9184 DA5C  0DAE 3B49 DF2A 0608 B895</b></span></font><span style="color:rgb(64,64,64);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;font-weight:bold;line-height:18.5714302062988px;text-align:right;background-color:rgb(247,247,247)"><br></span></div><div><font color="#404040" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="line-height:18.5714302062988px"><b><br></b></span></font></div><div>When trying to re-install the package, it still fails.<br></div><div><br></div><div>BUT, if I copy the key to the client serveur in /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6</div><div>AND setup the spacewalk channel "GPG key URL" to file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6</div><div>THEN it works:</div><div><br></div><div><div>warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY</div><div>Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6</div><div>Importing GPG key 0x0608B895:</div><div> Userid: "EPEL (6) <<a href="mailto:epel@fedoraproject.org" target="_blank">epel@fedoraproject.org</a>>"</div><div> From  : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6</div><div>Is this ok [y/N]: n</div></div><div><br></div><div><br></div><div>=> why? Can't we import gpg key from HTTP? Will I need to copy the GPG key on each client?</div><div><br></div>-- <br>Nicolas MICHEL
</div></div>
<br>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div>