Getting SSL error when trying to run satellite-sync or while activating a satellite certificate
Environment
- Red Hat Satellite
- Satellite-sync
Issue
- Satellite certificate activation fails with
Error: [('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')] satellite-syncfails with following error :
02:46:23 Red Hat Network Satellite - live synchronization
02:46:23 url: https://satellite.rhn.redhat.com
02:46:23 debug/output level: 1
ERROR: there was a problem synchronizing the information.
Error message: [('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')]
Resolution
- Verify that
/etc/rhn/rhn.conffile has the correct hostname specified in theserver.satellite.rhn_parentfield as mentioned below:
traceback_mail = root@localhost.com
mount_point = /var/satellite
kickstart_mount_point = /var/satellite
repomd_cache_mount_point = /var/cache
server.satellite.rhn_parent = satellite.rhn.redhat.com <-------
-
Other hostnames such as
rhn.redhat.comorxmlrpc.rhn.redhat.commay have worked in the past, but should no longer be used. -
Confirm whether proxy or firewall is not blocking the communication between RHN and Satellite Server.
-
Edit
/etc/sysconfig/rhn/up2datefile and changeserverURL=https://xmlrpc.rhn.redhat.com/XMLRPCtoserverURL=http://xmlrpc.rhn.redhat.com/XMLRPC(removed 's' from https) and also adduseNoSSLForPackages=1and save the file -
Upgrade/re-install rhn-client-tools package
-
Disable Location Aware Update
Root Cause
- Under
/etc/rhn/rhn.confserver.satellite.rhn_parent should point tosatellite.rhn.redhat.com.
Diagnostic Steps
- If a proxy is being used when running satellite sync double check that is is functional:
# nc -v -w2 -x proxy_address[:port] satellite.rhn.redhat.com 80
# nc -v -w2 -x proxy_address[:port] satellite.rhn.redhat.com 443
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
