<font size=2 face="sans-serif">Hi Daryl,</font>
<br>
<br><font size=2 face="sans-serif">how many certificates are stored within
</font><tt><font size=2>RHN-ORG-TRUSTED-SSL-CERT</font></tt><font size=2 face="sans-serif">?</font>
<br>
<br><font size=2 face="sans-serif">Only one? </font>
<br>
<br><font size=2 face="sans-serif">You said, the "curl" command
with "--cacert" set to point to the RHN-ORG... file and setting
"--capath none" worked, So we really have to check the links
within /etc/ssl/certs</font>
<br>
<br><font size=2 face="sans-serif">And you are NOT using intermediate certificates?</font>
<br>
<br><font size=2 face="sans-serif">Please verify, that the name of the
link in /etc/ssl/certs pointing to your RHN-ORG file is the same value
as the "subject_hash" of your CA, stored within the RHN-ORG file</font>
<br>
<br><font size=2 face="sans-serif">Get subject_hash from certificate</font>
<br>
<br><font size=2 face="sans-serif">openssl x509 -in /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
-noout -subject_hash</font>
<br>
<br><font size=2 face="sans-serif">This returns the hash. Within /etc/ssl/certs,
there should now be a symlink with the "hash value" + ".0"
appended, pointing to the RHN-ORG file</font>
<br>
<br><font size=2 face="sans-serif">In my case</font>
<br>
<br><font size=2 face="sans-serif">83475fa3</font>
<br>
<br><font size=2 face="sans-serif">ls -l /etc/ssl/certs | grep RHN</font>
<br>
<br><font size=2 face="sans-serif">Should show something like this</font>
<br>
<br><font size=2 face="sans-serif">....83475fa3.0 -> RHN-ORG-TRUSTED-SSL-CERT.PEM</font>
<br>
<br><font size=2 face="sans-serif">If this is not the case, then this is
the error.</font>
<br>
<br><font size=2 face="sans-serif">Regards,</font>
<br><font size=2 face="sans-serif">Robert</font>
<br>
<br><font size=2 face="sans-serif">Mit freundlichen Grüßen</font>
<br>
<br><font size=2 face="sans-serif">Robert Paschedag</font>
<br><font size=2 face="sans-serif">Netlution GmbH</font>
<br><font size=2 face="sans-serif">Landteilstr. 33</font>
<br><font size=2 face="sans-serif">68163 Mannheim</font>
<br>
<br><font size=2 face="sans-serif">im Auftrag des</font>
<br><font size=2 face="sans-serif">SWR</font>
<br><font size=2 face="sans-serif">Südwestrundfunk</font>
<br><font size=2 face="sans-serif">Informations- und Kommunikationssysteme</font>
<br><font size=2 face="sans-serif">Neckarstraße 230</font>
<br><font size=2 face="sans-serif">70190 Stuttgart</font>
<br>
<br><font size=2 face="sans-serif">Telefon +49 (0)711 /929-12654 oder</font>
<br><font size=2 face="sans-serif">Telefon +49 (0)711 /929-13714</font>
<br><font size=2 face="sans-serif">paschedag.netlution@swr.de</font>
<br>
<br><font size=2 face="sans-serif">swr.de</font>
<br>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von:      
 </font><font size=1 face="sans-serif">Daryl Rose <darylrose@outlook.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">An:      
 </font><font size=1 face="sans-serif">"robert.paschedag@web.de"
<robert.paschedag@web.de>, "spacewalk-list@redhat.com"
<spacewalk-list@redhat.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum:      
 </font><font size=1 face="sans-serif">11.09.2015 14:56</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff:    
   </font><font size=1 face="sans-serif">Re: [Spacewalk-list]
How to use a signed certificate?</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Gesendet von:    
   </font><font size=1 face="sans-serif">spacewalk-list-bounces@redhat.com</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Robert,<br>
<br>
I finally had a chance to get back to this.   <br>
<br>
You said to look to see if Apache is deploying the SSLCertificateChainFile
certificate chain. <br>
<br>
SSLCertificateChainFile  was commented out, but I'm not sure  what
I need to put in for the Certificate Chain File.   <br>
<br>
However, I looked at my demo server, and the SSLCertificateChainFile  was
also commented out in the ssl.conf file.  But, SLES works perfectly
with that server.   I moved one of my SLES machine to the demo server,
and it accepts the certificate just fine.  So, I'm now wondering if
this issue is something else.<br>
<br>
Thanks<br>
<br>
Daryl<br>
<br>
<br>
________________________________________<br>
From: spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com>
on behalf of Robert Paschedag <robert.paschedag@web.de><br>
Sent: Wednesday, September 9, 2015 11:25 AM<br>
To: spacewalk-list@redhat.com<br>
Subject: Re: [Spacewalk-list] How to use a signed certificate?<br>
<br>
Hi Daryl,<br>
<br>
looks good. But try the following.<br>
<br>
Put a testfile on the spacewalk "pub" folder...normally "/srv/www/html/pub"<br>
<br>
Then try to manually grab the file with "curl", only using "your"
CA file<br>
<br>
curl -vvv -1 --cacert /etc/ssl/certs/RHN... --capath none<br>
https://<yourserver>/pub/<testfile><br>
<br>
If this works, try same without setting "--cacert and --capath".
If this<br>
does NOT work, something went wrong running "c_rehash".<br>
<br>
If both do NOT work, then maybe the apache server is not "deploying"
the<br>
complete certificate chain. Look for "apache"s "SSLCertificateChainFile"<br>
in /etc/http/conf.d/ssl.conf<br>
<br>
Regards,<br>
Robert<br>
<br>
<br>
Am 09.09.2015 um 15:12 schrieb Daryl Rose:<br>
> Avi,<br>
><br>
> Here are the steps for registering SLES from the Spacewalk documentation:<br>
><br>
> </font></tt><a href=https://fedorahosted.org/spacewalk/wiki/RegisteringClients#SUSE><tt><font size=2>https://fedorahosted.org/spacewalk/wiki/RegisteringClients#SUSE</font></tt></a><tt><font size=2><br>
><br>
> However, the steps are not completely accurate for SLES 11 SP3.  A
few changes need to be made.<br>
><br>
> 1. Changes to the spacewalk-tools URL.<br>
> zypper ar -f </font></tt><a href=http://download.opensuse.org/repositories/systemsmanagement:/spacewalk:/2.3/SLE_11_SP3/><tt><font size=2>http://download.opensuse.org/repositories/systemsmanagement:/spacewalk:/2.3/SLE_11_SP3/</font></tt></a><tt><font size=2>
spacewalk-tools<br>
><br>
> 2.  Step two applies to SLES 12, not to SLES 11.  (I learned
about that from this forum).  These are the modified steps:<br>
> a.  wget </font></tt><a href="http://corp-spwalk-prod01.dtn.com/pub/RHN-ORG-TRUSTED-SSL-CERT"><tt><font size=2>http://corp-spwalk-prod01.dtn.com/pub/RHN-ORG-TRUSTED-SSL-CERT</font></tt></a><tt><font size=2>
-O /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT<br>
> b.  cp /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT /etc/ssl/certs/RHN-ORG-TRUSTED-SSL-CERT.pem<br>
> c.  c_rehash /etc/ssl/certs/<br>
><br>
> After running the c_rehash, I get the following:<br>
><br>
> lrwxrwxrwx 1 root root   28 Sep  9 08:05 dcfb5746.0 ->
RHN-ORG-TRUSTED-SSL-CERT.pem<br>
><br>
> I'm assuming that this is what I should see.<br>
><br>
> These are the same steps that I used in my testing. Is there something
wrong with the cert?<br>
><br>
> Thanks<br>
><br>
> Daryl<br>
><br>
> ________________________________________<br>
> From: spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com>
on behalf of Avi Miller <avi.miller@oracle.com><br>
> Sent: Tuesday, September 8, 2015 3:39 PM<br>
> To: spacewalk-list@redhat.com<br>
> Subject: Re: [Spacewalk-list] How to use a signed certificate?<br>
><br>
> Hey Daryl,<br>
><br>
>> On 9 Sep 2015, at 6:06 am, Daryl Rose <darylrose@outlook.com>
wrote:<br>
>><br>
>> I decided to move my SW environment into production, so I stood
up a brand new SW server and redid the signed certificate according to
your documentation.  Everything works fine with the RHEL servers that
I've attached, but I'm having certificate issues with SLES.<br>
><br>
> I don't think we ever tested this with SLES/OpenSUSE as that's not
covered under standard Oracle support. I've not even looked into how you
register a SLES system to Spacewalk, so I can't comment on how that process
would need to be updated for a 3rd-party certificate.<br>
><br>
> However, this seems like a verification issue, so I would double-check
that you're using the correct CA certificate (RHN-ORG-TRUSTED-SSL-CERT)
and that it has the entire CA chain contained. Otherwise, the client would
not be able to verify the certificate provided by the server.<br>
><br>
> Can you point me towards the appropriate documentation that outlines
the SLES registration process to Spacewalk so I can review?<br>
><br>
> Thanks,<br>
> Avi<br>
><br>
> --<br>
> Oracle <</font></tt><a href=http://www.oracle.com/><tt><font size=2>http://www.oracle.com</font></tt></a><tt><font size=2>><br>
> Avi Miller | Product Management Director | +61 (3) 8616 3496<br>
> Oracle Linux and Virtualization<br>
> 417 St Kilda Road, Melbourne, Victoria 3004 Australia<br>
><br>
><br>
> _______________________________________________<br>
> Spacewalk-list mailing list<br>
> Spacewalk-list@redhat.com<br>
> </font></tt><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><tt><font size=2>https://www.redhat.com/mailman/listinfo/spacewalk-list</font></tt></a><tt><font size=2><br>
><br>
> _______________________________________________<br>
> Spacewalk-list mailing list<br>
> Spacewalk-list@redhat.com<br>
> </font></tt><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><tt><font size=2>https://www.redhat.com/mailman/listinfo/spacewalk-list</font></tt></a><tt><font size=2><br>
><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
Spacewalk-list@redhat.com<br>
</font></tt><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><tt><font size=2>https://www.redhat.com/mailman/listinfo/spacewalk-list</font></tt></a><tt><font size=2><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
Spacewalk-list@redhat.com<br>
</font></tt><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list"><tt><font size=2>https://www.redhat.com/mailman/listinfo/spacewalk-list</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>