今天更新PHP的时候遇到的一个报错,记录一下解决方法。
ERROR: cannot verify download.bt.cn's certificate, issued by ‘CN=sslTrus (RSA) OV CA,O=sslTrus,C=CN’: Unable to locally verify the issuer's authority. To connect to download.bt.cn insecurely, use `--no-check-certificate'.
解决方法:
echo "ca_certificate=/etc/ssl/certs/ca-certificates.crt" >> /etc/wgetrc