Coding Spirit

一位程序员,比较帅的那种

0%

SSL certificate problem: unable to get local issuer certificate

Yesterday successfully cross compiled curl with mbedTLS, but there was an error when trying to access a https link:

1
SSL certificate problem: unable to get local issuer certificate

To fix it, download CA certificate to local machine and export environment variable CURL_CA_BUNDLE:

1
2
wget https://curl.haxx.se/ca/cacert.pem
export CURL_CA_BUNDLE=<path of cacert.pem>