azure - 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 图像?
解决方案
在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上对此进行了测试,对我来说效果很好。
推荐阅读
- jira - 如何获取未链接到测试用例的用户故事?有什么查询吗?我已经尝试过链接问题
- java - 如何使用 CIFS 在 Android Studio 中访问文件
- java - 配置 Springboot Cloud Config Server - management.security.enabled=false flag 不工作
- bash - 在 Bash 中打破循环
- openssl - 生成 rsa 公钥的哈希值
- swift - 使用调度组时关闭丢失
- java - 我应该如何更改此 Shuffle 方法以使 shuffle 功能正常工作
- excel - VBA中的总和标签值
- android-studio - Android studio 3.4 布局编辑器不允许在设计器中为 ConstraintLayout 操作元素
- php - 我尝试将我的控制器重定向到('Admin/login'),但它不起作用