Description of problem:
registration failure message due an empty/corrupt cert in /etc/rhsm/ca folder is not appropriate
Version-Release number of selected component (if applicable):
[root@dhcp35-101 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: Unknown
subscription management rules: Unknown
Steps to Reproduce:
Create an empty cert:
[root@dhcp35-101 ~]# touch /etc/rhsm/ca/myemptycert.pem
Now try to register:
[root@dhcp35-101 ~]# subscription-manager register --force
Registering to: Shwetha-Candlepin.usersys.redhat.com:8443/candlepin
Unable to verify server's identity: unknown error (_ssl.c:2747)
Shwetha, can you remind us what the old behavior was and how this has changed?
Previously displayed message was "Bad CA certificate: <file path>"
[root@cisco-b200m1-03 ~]# touch /etc/rhsm/ca/myemptycert.pem
[root@cisco-b200m1-03 ~]# subscription-manager register --force
Bad CA certificate: /etc/rhsm/ca/myemptycert.pem
[root@cisco-b200m1-03 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.51.21-1
subscription management rules: 5.15.1
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.