Wget 报错 The certificate of ‘XXX’ is not trusted

wget http://pecl.php.net/get/zip-1.19.3.tgz
URL transformed to HTTPS due to an HSTS policy
--2021-09-02 17:43:36--  https://pecl.php.net/get/zip-1.19.3.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: The certificate of ‘pecl.php.net’ is not trusted.
ERROR: The certificate of ‘pecl.php.net’ was signed using an insecure algorithm.

  添加选项参数

--no-check-certificate

posted @ 2021-09-02 17:50  sunyheart  阅读(595)  评论(0编辑  收藏  举报