Curl error (60): SSL peer certificate or SSH remote key was not OK for https://update.cs2c.com.cn/NS/V10/V10SP2/os/adv/lic/base/x86_64/repodata/repomd.xml [SSL: no alternative certificate subject name matches target host name 'update.cs2c.com.cn']

简介: 【10月更文挑战第30天】在尝试从麒麟软件仓库(ks10-adv-os)下载元数据时,遇到 SSL 证书验证问题。错误提示为:`Curl error (60): SSL peer certificate or SSH remote key was not OK`。可能原因包括证书不被信任、证书与域名不匹配或网络问题。解决方法包括检查网络连接、导入 SSL 证书、禁用 SSL 证书验证(不推荐)、联系仓库管理员、检查系统时间和尝试其他镜像。

报错解决
这个错误信息表明在尝试从麒麟软件的仓库(ks10-adv-os)下载元数据时,遇到了 SSL 证书验证问题。具体来说,错误提示是:

Curl error (60): SSL peer certificate or SSH remote key was not OK for https://update.cs2c.com.cn/NS/V10/V10SP2/os/adv/lic/base/x86_64/repodata/repomd.xml
[SSL: no alternative certificate subject name matches target host name 'update.cs2c.com.cn']
这通常意味着以下几种情况之一:

SSL 证书不被信任:服务器提供的 SSL 证书不被你的系统信任。这可能是因为证书是自签名的,或者证书不在系统的受信任证书存储中。

证书与域名不匹配:服务器提供的 SSL 证书的域名与请求的域名不匹配。

网络问题:网络连接问题可能导致无法正确验证 SSL 证书。

要解决这个问题,你可以尝试以下步骤:

  1. 检查网络连接
    确保你的系统可以正常访问 update.cs2c.com.cn。你可以尝试使用 ping 或 curl 命令来测试连接:

bash
ping update.cs2c.com.cn
curl -I https://update.cs2c.com.cn

  1. 导入 SSL 证书
    如果证书不被信任,你可能需要手动将 SSL 证书导入到系统的受信任证书存储中。这通常需要管理员权限。

  2. 禁用 SSL 证书验证(不推荐)
    作为一种临时解决方案,你可以在 yum 配置中禁用 SSL 证书验证。这不是推荐的做法,因为它会降低安全性,但可以作为临时措施来解决问题:

bash
sudo yum --disablerepo=ks10-adv-os install some-package
或者,在 /etc/yum.conf 或仓库配置文件中添加:

bash
sslverify=0
请注意,这种方法会禁用 SSL 证书验证,可能会使你的系统面临中间人攻击的风险。

  1. 联系仓库管理员
    如果问题持续存在,你可能需要联系仓库管理员或麒麟软件的技术支持,以获取更多帮助。

  2. 检查系统时间
    确保你的系统时间是准确的,因为 SSL 证书验证可能会因为时间不同步而失败。

  3. 尝试其他镜像
    如果问题是由于特定镜像的问题,尝试更换到其他镜像可能会有所帮助。

目录
相关文章
|
网络安全 图形学 Android开发
Unity与安卓丨AS报错:SSL peer shut down incorrectly
Unity与安卓丨AS报错:SSL peer shut down incorrectly
Unity与安卓丨AS报错:SSL peer shut down incorrectly
|
安全 网络安全
jsch 报错 no matching host key type found. Their offer: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha> 如何处理
【5月更文挑战第24天】jsch 报错 no matching host key type found. Their offer: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha> 如何处理
1127 1
|
算法 网络安全
Unable to negotiate with 127.0.0.1 port 29215: no matching host key type found. Their offer: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha> 解决
【5月更文挑战第5天】Unable to negotiate with 127.0.0.1 port 29215: no matching host key type found. Their offer: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha> 解决
765 7
|
弹性计算 运维 Shell
基于key验证多主机ssh访问
【4月更文挑战第30天】
138 1
|
网络安全
ssh: Could not resolve hostname centos02: Temporary failure in name resolution
ssh: Could not resolve hostname centos02: Temporary failure in name resolution
1057 0
|
安全 网络安全
jsch 报错 no matching host key type found. Their offer: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha>问题处理方法
【5月更文挑战第10天】jsch 报错 no matching host key type found. Their offer: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha>问题处理方法
805 0
|
算法 网络安全
no matching host key type found. Their offer: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha> 问题解决
【5月更文挑战第8天】no matching host key type found. Their offer: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha> 问题解决
3697 0
|
关系型数据库 网络安全 对象存储
Flink报错问题之Flink报错java.io.EOFException: SSL peer shut down incorrectly如何解决
Flink报错通常是指在使用Apache Flink进行实时数据处理时遇到的错误和异常情况;本合集致力于收集Flink运行中的报错信息和解决策略,以便开发者及时排查和修复问题,优化Flink作业的稳定性。
|
Java 网络安全
SSL peer shut down incorrectly
SSL peer shut down incorrectly
1033 0
|
3月前
|
安全 数据建模 应用服务中间件
阿里云SSL证书价格、证书类型及免费版证书申请和证书部署教程参考
阿里云SSL证书有收费版也有免费版,收费版DV域名级SSL类型405元起,免费版证书为DV域名级SSL类型,每个实名个人和企业主体在一个自然年内可以一次性领取20张免费证书。本文为大家详细介绍阿里云SSL证书价格情况,包括不同域名类型、证书类型、证书等级和证书品牌的相关收费标准,以及免费版证书的申请和部署教程参考。

推荐镜像

更多