首页 > 解决方案 > Azure RedHat vm yum 更新失败,并显示“SSL 对等方拒绝您的证书已过期。”

问题描述

我刚刚在 Azure 上启动了一个标准 RedHat 7 VM。

我登录并输入:

sudo yum update

并得到:

Loaded plugins: langpacks, product-id, search-disabled-repos
https://rhui-3.microsoft.com/pulp/repos//content/dist/rhel/rhui/server/7/7Server/x86_64/dotnet/1/debug/repodata/repomd.xml:
[Errno 14] curl#58 - "SSL peer rejected your certificate as expired."
Trying other mirror.
https://rhui-1.microsoft.com/pulp/repos//content/dist/rhel/rhui/server/7/7Server/x86_64/dotnet/1/debug/repodata/repomd.xml:
[Errno 14] curl#58 - "SSL peer rejected your certificate as expired."
Trying other mirror.
...

我认为 PAYG 许可证包括更新?还是当前图像损坏?也尝试过 7.4 图像?

标签: azureredhatyum

解决方案


MSDN中,您可以运行以下命令来更新 Azure RedHat VM 上的 RHUI 客户端证书:

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

现在您应该能够下载/更新软件包而不会出现SSL peer rejected your certificate as expired错误。

在Azure RedHat Enterprise Linux 7.3上对此进行了测试,对我来说效果很好。


推荐阅读