redhatのsubscriptionが更新できないのはサーバの時刻が正しくないからだった

 

[root@peter ~]# subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: hogehoge
Password:
Unable to verify server's identity: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)
[root@peter ~]# date
Thu Aug 12 07:23:06 JST 2027
[root@peter ~]#
[root@peter ~]#
[root@peter ~]#
[root@peter ~]# date --set="14 MAY 2022 04:06:00"
Sat May 14 04:06:00 JST 2022
[root@peter ~]#
[root@peter ~]#
[root@peter ~]#
[root@peter ~]#
[root@peter ~]#
[root@peter ~]#
[root@peter ~]#
[root@peter ~]# subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: hogehoge
Password:
The system has been registered with ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
The registered system name is: peter.monqy.net