spacewalk-sync-setup Fail due to "certificate verify failed (_ssl.c:579)"

(Doc ID 2353401.1)

Last updated on MARCH 12, 2018

Applies to:

Linux OS - Version Oracle Linux 7.4 and later
Linux x86-64

Symptoms

When configuring Master and Slave Spacewalk Servers (v2.6) by using the spacewalk-sync-setup command, it fails on both master server and slave server with same error below. 

[root@master ~]# spacewalk-sync-setup --apply --create-templates --ms=master.test.com --ml=admin --mp=password --ss=slave.test.com --sl=admin --sp=password

INFO: Connecting to admin@master.test.com
INFO: Connecting to admin@slave.test.com
Traceback (most recent call last):
File "/bin/spacewalk-sync-setup", line 624, in <module>
slave_cnx = connectTo(slave_info)
File "/bin/spacewalk-sync-setup", line 308, in connectTo
key = client.auth.login(info['login'], info['password'])
File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1587, in __request
verbose=self.__verbose
File "/usr/lib64/python2.7/xmlrpclib.py", line 1273, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1301, in single_request
self.send_content(h, request_body)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1448, in send_content
connection.endheaders(request_body)
File "/usr/lib64/python2.7/httplib.py", line 1013, in endheaders
self._send_output(message_body)
File "/usr/lib64/python2.7/httplib.py", line 864, in _send_output
self.send(msg)
File "/usr/lib64/python2.7/httplib.py", line 826, in send
self.connect()
File "/usr/lib64/python2.7/httplib.py", line 1236, in connect
server_hostname=sni_hostname)
File "/usr/lib64/python2.7/ssl.py", line 350, in wrap_socket
_context=self)
File "/usr/lib64/python2.7/ssl.py", line 611, in __init__
self.do_handshake()
File "/usr/lib64/python2.7/ssl.py", line 833, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms