openwrt下curl使用mbedtls,校验ssl要安装ca-bundle,wget使用libssl,校验ssl要安装ca-certificates,索性单独下载ca证书文件,curl和wget用配置文件指定ca证书。
curl -k https://curl.se/ca/cacert.pem -o /etc/ssl/certs/ca-certificates.crt
echo 'ca-certificate = /etc/ssl/certs/ca-certificates.crt' > ~/.wgetrc
echo 'cacert=/etc/ssl/certs/ca-certificates.crt' > ~/.curlrc
https://curl.se/docs/caextract.html
标签:none