When registering a system using a rhproxy I get "Unable to read certificate file RHN-ORG-TRUSTED-SSL-CERT" in the servers logs

Solution Verified - Updated -

Issue

On a new setup satellite and rhproxy, I try to register a system using the proxy using this command:

/usr/sbin/rhnreg_ks --force --activationkey <somekey> \
  --serverUrl=https://satellite.example.org/XMLRPC --sslCACert=/root/RHN-ORG-TRUSTED-SSL-CERT 

This fails and on the rhproxy in file /var/log/httpd/errorlog this appears:

[error] \tX-Up2Date-Version: 4.9.1-29.el4
[error] \tmod_wsgi.application_group: satellite.example.org|/xmlrpc
[error] \tmod_wsgi.callable_object: application
[error] \tmod_wsgi.handler_script:
[error] \tmod_wsgi.input_chunked: 0
[error] \tmod_wsgi.listener_host:
[error] \tmod_wsgi.listener_port: 443
[error] \tmod_wsgi.process_group:
[error] \tmod_wsgi.request_handler: wsgi-script
[error] \tmod_wsgi.script_reloading: 1
[error] \tmod_wsgi.version: (3, 2)
[error] \twsgi.errors: <mod_wsgi.Log object at 0x7fe1ccc636b0>
[error] \twsgi.file_wrapper: <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fe1cd337648>
[error] \twsgi.input: <mod_wsgi.Input object at 0x7fe1ccc635f0>
[error] \twsgi.multiprocess: True
[error] \twsgi.multithread: False
[error] \twsgi.run_once: False
[error] \twsgi.url_scheme: https
[error] \twsgi.version: (1, 1)
[error] Extra information about this error:
[error] Unhandled exception type
[error]
[error] Exception Handler Information
[error] Traceback (most recent call last):
[error]   File "/usr/share/rhn/proxy/apacheServer.py", line 66, in __call__
[error]     ret = f(req)
[error]   File "/usr/share/rhn/proxy/apacheHandler.py", line 341, in handler
[error]     ret = handlerObj.handler()
[error]   File "/usr/share/rhn/proxy/broker/rhnBroker.py", line 206, in handler
[error]     self._connectToParent()  # part 1
[error]   File "/usr/share/rhn/proxy/rhnShared.py", line 117, in _connectToParent
[error]     self.responseContext.getConnection().connect()
[error]   File "/usr/lib/python2.6/site-packages/rhn/connections.py", line 221, in connect
[error]     self.sock = SSL.SSLSocket(sock, self.trusted_certs)
[error]   File "/usr/lib/python2.6/site-packages/rhn/SSL.py", line 38, in __init__
[error]     self.add_trusted_cert
[error]   File "/usr/lib/python2.6/site-packages/rhn/SSL.py", line 63, in add_trusted_cert
[error]     raise ValueError, "Unable to read certificate file %s" % file
[error] ValueError: Unable to read certificate file RHN-ORG-TRUSTED-SSL-CERT

Environment

  • Red Hat Enterprise Linux
  • Red Hat Satellite 5.4.1
  • Red Hat Proxy

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.