Satellite 6 host registration fails with error SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)

Solution Verified - Updated -

Issue

  • Host registration fails with following error :
# subscription-manager register --org="org" --activationkey="key" 
2019-08-05 14:33:33,816 [ERROR] subscription-manager:29125:MainThread @identity.py:145 - Reload of consumer identity cert /etc/pki/consumer/cert.pem raised an exception with msg: [Errno 2] No such file or directory: '/etc/pki/consumer/key.pem'
2019-08-05 14:33:33,829 [INFO] subscription-manager:29125:MainThread @managercli.py:452 - X-Correlation-ID: xxxxxxxx
2019-08-05 14:33:33,829 [INFO] subscription-manager:29125:MainThread @managercli.py:341 - Client Versions: {'subscription-manager': '1.20.11-1.el7_5'}
2019-08-05 14:33:33,830 [INFO] subscription-manager:29125:MainThread @connection.py:868 - Connection built: host=host.example.com port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2019-08-05 14:33:33,830 [INFO] subscription-manager:29125:MainThread @connection.py:868 - Connection built: host=host.example.com port=443 handler=/rhsm auth=none
2019-08-05 14:33:33,830 [INFO] subscription-manager:29125:MainThread @managercli.py:341 - Client Versions: {'subscription-manager': '1.20.11-1.el7_5'}
2019-08-05 14:33:33,847 [INFO] subscription-manager:29125:MainThread @managercli.py:317 - Consumer Identity name=None uuid=None
2019-08-05 14:33:33,850 [INFO] subscription-manager:29125:MainThread @managercli.py:317 - Consumer Identity name=None uuid=None
2019-08-05 14:33:33,850 [INFO] subscription-manager:29125:MainThread @connection.py:868 - Connection built: host=host.example.com.com port=443 handler=/rhsm auth=none
2019-08-05 14:33:33,887 [ERROR] subscription-manager:29125:MainThread @hwprobe.py:649 - Error during resolving IPv6 address of hostname: host.example.com, [Errno -5] No address associated with hostname
2019-08-05 14:33:33,916 [INFO] subscription-manager:29125:MainThread @dmiinfo.py:75 - Using dmidecode dump file: /dev/mem
2019-08-05 14:33:34,315 [ERROR] subscription-manager:29125:MainThread @hwprobe.py:649 - Error during resolving IPv6 address of hostname: host.example.com, [Errno -5] No address associated with hostname
2019-08-05 14:33:34,333 [ERROR] subscription-manager:29125:MainThread @managercli.py:181 - Error during registration: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)
2019-08-05 14:33:34,334 [ERROR] subscription-manager:29125:MainThread @managercli.py:182 - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 1113, in _do_command
    type=self.options.consumertype
  File "/usr/lib64/python2.7/site-packages/rhsmlib/services/register.py", line 80, in register
    type=type
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 966, in registerConsumer
    return self.conn.request_post(url, params)
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 693, in request_post
    return self._request("POST", method, params, headers=headers)
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 716, in _request
    info=info, headers=headers)
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 555, in _request
    conn.request(request_type, handler, body=body, headers=final_headers)
  File "/usr/lib64/python2.7/httplib.py", line 1041, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib64/python2.7/httplib.py", line 1075, in _send_request
    self.endheaders(body)
  File "/usr/lib64/python2.7/httplib.py", line 1037, in endheaders
    self._send_output(message_body)
  File "/usr/lib64/python2.7/httplib.py", line 881, in _send_output
    self.send(msg)
  File "/usr/lib64/python2.7/httplib.py", line 843, in send
    self.connect()
  File "/usr/lib64/python2.7/httplib.py", line 1260, in connect
    server_hostname=sni_hostname)
  File "/usr/lib64/python2.7/ssl.py", line 348, in wrap_socket
    _context=self)
  File "/usr/lib64/python2.7/ssl.py", line 609, in __init__
    self.do_handshake()
  File "/usr/lib64/python2.7/ssl.py", line 831, in do_handshake
    self._sslobj.do_handshake()
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)
Unable to verify server's identity: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)

Environment

  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In