Unable to run YUM (RHEL 8.0) RHUI Expired SSL Cert

Branden Martin 0 Reputation points
2023-07-12T13:31:43.2033333+00:00

Hello everyone,

This morning I am trying to run YUM on my RHEL 8 Azure Virtual Machine, but it looks like the repo mirrors used from Azure are not functional due to an expired SSL cert.

Please advise on how to fix this issue, error below:

$ yum update
packages-microsoft-com-prod                                                                                                                                                    21 MB/s | 7.6 MB     00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS - Extended Update Support from RHUI (RPMs)                                                                                     0.0  B/s |   0  B     00:00
Errors during downloading metadata for repository 'rhel-8-for-x86_64-baseos-eus-rhui-rpms':
  - Curl error (56): Failure when receiving data from the peer for https://rhui-2.microsoft.com/pulp/repos/content/eus/rhel8/rhui/8.6/x86_64/baseos/os/repodata/repomd.xml [OpenSSL SSL_read: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired, errno 0]
  - Curl error (56): Failure when receiving data from the peer for https://rhui-1.microsoft.com/pulp/repos/content/eus/rhel8/rhui/8.6/x86_64/baseos/os/repodata/repomd.xml [OpenSSL SSL_read: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired, errno 0]
  - Curl error (56): Failure when receiving data from the peer for https://rhui-3.microsoft.com/pulp/repos/content/eus/rhel8/rhui/8.6/x86_64/baseos/os/repodata/repomd.xml [OpenSSL SSL_read: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired, errno 0]
Error: Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-eus-rhui-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,081 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Branden Martin 0 Reputation points
    2023-07-12T14:07:01.5933333+00:00

    The follow fixed my issue:

    yum update -y --disablerepo='*' --enablerepo='*microsoft*'
    
    0 comments No comments

  2. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2023-07-17T18:42:07.4233333+00:00

    @Branden Martin

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue: You were receiving "sslv3 alert certificate expired" when running yum commands on your RHEL 8 VM.

    Solution: Running the below command resolved the issue. You can see this and other fixes here.

    yum update -y --disablerepo='*' --enablerepo='*microsoft*'
    

    If you have any other questions or are still running into more issues, please let me know.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A! User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.