使用wget命令报错:Issued certificate has expired(颁发的证书已经过期)

问题描述

一台测试机,centos7.9,也没咋动过。这次使用wget 下载一个 tar包的时候,出现报错:

[root@mq3 nginx]# wget https://pecl.php.net/get/xmlrpc-1.0.0RC3.tgz
--2023-09-22 16:01:04--  https://pecl.php.net/get/xmlrpc-1.0.0RC3.tgz
正在解析主机 pecl.php.net (pecl.php.net)... 104.236.228.160
正在连接 pecl.php.net (pecl.php.net)|104.236.228.160|:443... 已连接。
错误: 无法验证 pecl.php.net 的由 “/C=US/O=Let's Encrypt/CN=R3” 颁发的证书:
  颁发的证书已经过期。
要以不安全的方式连接至 pecl.php.net,使用“--no-check-certificate”。

英文版:

[root@ndb1 server]# wget https://pecl.php.net/get/xmlrpc-1.0.0RC3.tgz
--2023-09-22 16:00:27--  https://pecl.php.net/get/xmlrpc-1.0.0RC3.tgz
Resolving pecl.php.net (pecl.php.net)... 104.236.228.160
Connecting to pecl.php.net (pecl.php.net)|104.236.228.160|:443... connected.
ERROR: cannot verify pecl.php.net's certificate, issued by ‘/C=US/O=Let's Encrypt/CN=R3’:
  Issued certificate has expired.
To connect to pecl.php.net insecurely, use `--no-check-certificate'.

解决方法

yum install ca-certificates

参考链接:https://blog.csdn.net/weixin_44393639/article/details/122912633

你可能感兴趣的:(故障排查,故障处理)