Justin Sherrill wrote:
Due to weird way that RHEL 2.1 has an 'up2date' and
'rhn_register'
config file, we need to set the SSL CA Cert in both of those files.
Passing it in on the command line will only set it in 'up2date', thus
causing the registration to fail. Here's a patch to set it in both
before the registration.
-Justin
--- a/snippets/redhat_register
+++ b/snippets/redhat_register
@@ -2,8 +2,10 @@
#if $redhat_management_type != "off" and $redhat_management_key !=
""
mkdir -p /usr/share/rhn/
#if $redhat_management_type == "site"
- #set $mycert = "/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT"
+ #set $mycert_file = "RHN-ORG-TRUSTED-SSL-CERT"
+ #set $mycert = "/usr/share/rhn/" + $mycert_file
wget http://$redhat_management_server/pub/RHN-ORG-TRUSTED-SSL-CERT -O
$mycert
+perl -npe 's/RHNS-CA-CERT/$mycert_file/g' -i /etc/sysconfig/rhn/*
#end if
#if $redhat_management_type == "hosted"
#set $mycert = "/usr/share/rhn/RHNS-CA-CERT"
Hi Justin,
This patch didn't apply, can you resend it as an attachment?
Thanks!
--Michael