wget下载php源码报错报错:The certificate of ‘www.php.net’ is not trusted.

前言

wget下载php源码时,报错内容如下:

--2022-02-24 09:08:07--  https://www.php.net/distributions/php-8.1.3.tar.bz2
Resolving www.php.net (www.php.net)... 185.85.0.29, 2a02:cb40:200::1ad
Connecting to www.php.net (www.php.net)|185.85.0.29|:443... connected.
ERROR: The certificate of ‘www.php.net’ is not trusted.
ERROR: The certificate of ‘www.php.net’ was signed using an insecure algorithm.

解决方法

wget命令后跟参数:--no-check-certificate
即:wget https://www.php.net/distributions/php-8.1.3.tar.bz2 --no-check-certificate

[root@centos ~]$ wget https://www.php.net/distributions/php-8.1.3.tar.bz2 --no-check-certificate
--2022-02-24 09:08:37--  https://www.php.net/distributions/php-8.1.3.tar.bz2
Resolving www.php.net (www.php.net)... 185.85.0.29, 2a02:cb40:200::1ad
Connecting to www.php.net (www.php.net)|185.85.0.29|:443... connected.
WARNING: The certificate of ‘www.php.net’ is not trusted.
WARNING: The certificate of ‘www.php.net’ was signed using an insecure algorithm.
HTTP request sent, awaiting response... 200 OK
Length: 15281496 (15M) [application/octet-stream]
Saving to: ‘php-8.1.3.tar.bz2’

php-8.1.3.tar.bz2        100%[=================================>]  14.57M  6.81MB/s    in 2.1s

2022-02-24 09:08:40 (6.81 MB/s) - ‘php-8.1.3.tar.bz2’ saved [15281496/15281496]
最后修改:2022 年 02 月 24 日 09 : 12 AM
如果觉得我的文章对你有用,请随意赞赏

发表评论