[Errno 14] Peer cert cannot be verified or peer cert invalid when updating using yum on Amazon EC2 RHEL AMIs
Environment
- All certified Red Hat Enterprise Linux (RHEL) 5.x/6.x AMIs in any Amazon EC2 region
Issue
-
On Amazon EC2 RHEL AMIs receives the following error when issuing the 'yum update' command :
"[Errno 14] Peer cert cannot be verified or peer cert invalid"
Resolution
-
Update the package rh-amazon-rhui-client in the affected RHEL AMIs as below:
For RHEL AMIs in US-East: RHEL5: rpm -Uhv http://redhat-clientconfig-us-east-1.s3.amazonaws.com/rh-amazon-rhui-client-2.2.16-1.el5.noarch.rpm RHEL6: rpm -Uhv http://redhat-clientconfig-us-east-1.s3.amazonaws.com/rh-amazon-rhui-client-2.2.16-1.el6.noarch.rpm For RHEL AMIs in US-West: RHEL5: rpm -Uhv http://redhat-clientconfig-us-west-1.s3.amazonaws.com/rh-amazon-rhui-client-2.2.16-1.el5.noarch.rpm RHEL6: rpm -Uhv http://redhat-clientconfig-us-west-1.s3.amazonaws.com/rh-amazon-rhui-client-2.2.16-1.el6.noarch.rpm For RHEL AMIs in EU-West: RHEL5: rpm -Uhv http://redhat-clientconfig-eu-west-1.s3.amazonaws.com/rh-amazon-rhui-client-2.2.16-1.el5.noarch.rpm RHEL6: rpm -Uhv http://redhat-clientconfig-eu-west-1.s3.amazonaws.com/rh-amazon-rhui-client-2.2.16-1.el6.noarch.rpm For RHEL AMIs in AP-Northeast: RHEL5: rpm -Uhv http://redhat-clientconfig-ap-northeast-1.s3.amazonaws.com/rh-amazon-rhui-client-2.2.16-1.el5.noarch.rpm RHEL6: rpm -Uhv http://redhat-clientconfig-ap-northeast-1.s3.amazonaws.com/rh-amazon-rhui-client-2.2.16-1.el6.noarch.rpm For RHEL AMIs in AP-Southeast: RHEL5: rpm -Uhv http://redhat-clientconfig-ap-southeast-1.s3.amazonaws.com/rh-amazon-rhui-client-2.2.16-1.el5.noarch.rpm RHEL6: rpm -Uhv http://redhat-clientconfig-ap-southeast-1.s3.amazonaws.com/rh-amazon-rhui-client-2.2.16-1.el6.noarch.rpm
-
After updating the package run the following:
# yum clean all
-
Now re-run the system update using 'yum update' command.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments