Cannot register RHEL 7 server (certificate verify failed) due to wrong time

Written by - 1 comments

Published on January 13th 2015 - Listed in Linux

I tried to register a newly installed Red Hat Enterprise Linux 7 server with the subscription-manager command but got the following error:

subscription-manager register
Username: xxx
Password: xxx
Unable to verify server's identity: certificate verify failed

In the rhsm.log file there is the same error with a bit of more details but unfortunately nothing to point me in the right direction:

cat /var/log/rhsm/rhsm.log
[DEBUG] subscription-manager - Making request: GET
[ERROR] subscription-manager - Error during registration: certificate verify failed
[ERROR] subscription-manager - certificate verify failed

After some searching, I came across a Red Hat Solution, which mentions to check the current time.

Indeed, after having fixed the time, the registration worked:

date --set="13 JAN 2015 12:20:15"

subscription-manager register
Username: xxx
Password: xxx
The system has been registered with ID: xxx

Add a comment

Show form to leave a comment

Comments (newest first)

Todd E from Taiwan wrote on May 11th, 2015:

thanks so much for your post! I couldn't figure this one out. I wish Redhat was a bit more insightful.