腾讯云的服务器,跑的是Centos8系统,现在yum安装或者升级软件都提示
- [[email protected] ~]# yum update openssl
- Repository epel is listed more than once in the configuration
- Extra Packages for Enterprise Linux Modular 8 – x86_64 0.0 B/s | 0 B 00:22
- Errors during downloading metadata for repository ‘epel-modular’:
- – Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://mirrors.fedoraproject.org/metalink?repo=epel-modular-8&arch=x86_64&infra=stock&content=centos [SSL certificate problem: CA certificate key too weak]
- Error: Failed to download metadata for repo ‘epel-modular’: Cannot prepare internal mirrorlist: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://mirrors.fedoraproject.org/metalink?repo=epel-modular-8&arch=x86_64&infra=stock&content=centos [SSL certificate problem: CA certificate key too weak]
复制代码
在宝塔面板上装软件都提示
- install_soft.sh: line 8: /www/server/panel/install/public.sh: No such file or directory
- /install/0/pureftpd.sh: Scheme missing.
- URL transformed to HTTPS due to an HSTS policy
- –2022-04-25 16:01:36– https://download.bt.cn/install/public.sh
- Resolving download.bt.cn (download.bt.cn)… 116.10.184.232, 240e:a5:4200:89::256
- Connecting to download.bt.cn (download.bt.cn)|116.10.184.232|:443… connected.
- ERROR: The certificate of ‘download.bt.cn’ is not trusted.
- ERROR: The certificate of ‘download.bt.cn’ was signed using an insecure algorithm.
- |-Successify — 命令已执行! —
复制代码
在宝塔论坛发了帖子,回答是根证书过去,他们技术反馈
- #centos
- mv /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/certs/ca-bundle.crt_backup
- mkdir -p /etc/pki/tls/certs
- wget -O /etc/pki/tls/certs/ca-bundle.crt http://download.bt.cn/tools/ca/cacert.pem
- chmod 444 /etc/pki/tls/certs/ca-bundle.crt
- #ubuntu/debian
- echo "ca_certificate=/etc/ssl/certs/ca-certificates.crt" >> /etc/wgetrc
- 如果不行
- mv /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt.bak
- wget -O /etc/ssl/certs/ca-certificates.crt http://download.bt.cn/tools/ca/cacert.pem
- chmod 644 /etc/ssl/certs/ca-certificates.crt
复制代码
我按照提示执行后,故障依旧,有大佬知道这该如何解决吗? |