Azure RedHat vm yum 更新失败并显示 "SSL peer rejected your certificate as expired."

标签 azure redhat yum

我刚刚在 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 镜像吗?

最佳答案

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

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

现在您应该能够下载/更新软件包,而不会出现 SSL 对等方因证书已过期而拒绝您的证书 错误。

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

关于Azure RedHat vm yum 更新失败并显示 "SSL peer rejected your certificate as expired.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53436443/

相关文章:

azure - azure 函数的自定义输入和输出字段

azure - 在 Azure 存储中读取和写入文本文件

PHP fatal error : Class 'Threaded' not found in/var/www/. .. php 在第 nn 行

linux - Linux 库的软件包是什么?

sql-server - Azure SQL 数据库架构的访问控制权限

.net - Visual Studio 2015 C# MVC::如何获取我的应用程序的基本 URL?

c++ - 为什么 free() 函数不将内存返回给操作系统?

python - 如何使用 RedHat Enterprise Linux 上的软件集合调用 python 3 cgi 脚本?

redhat - 具有间歇性 refclock 的 chrony

python - 我已经用 yum install python-devel 安装了,但是还是找不到 Python.h 文件