Closed steffilazerte closed 4 years ago
I suspect it isn't a weathercan issue but rather a problem with the certificates on your server. For example: https://stackoverflow.com/questions/21181231/server-certificate-verification-failed-cafile-etc-ssl-certs-ca-certificates-c. If you want to pursue this further as a weathercan problem, open a new issue and we can troubleshoot from there.
Originally posted by @steffilazerte in #59 (comment)
Package is working again on our ubuntu servers. Adding climate.weather.gc.ca security certificate to our ca-certificates file fixed the "Error: Evaluation error: server certificate verification failed" issue.
Originally posted by @ebourlon in #59 (comment)
On our ubuntu linux servers, here is the commands I used (sudo if needed):
1- Get the climate.weather.gc.ca certificate and save it into climate.weather.gc.ca.crt in the ca-certificate folder of the server (/usr/local/share/ca-certificates/ is the usual folder):
echo -n | openssl s_client -showcerts -connect climate.weather.gc.ca:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /usr/local/share/ca-certificates/climate.weather.gc.ca.crt
2- Update the ca-certificates:
update-ca-certificates
Et voilà! It worked for us that way.
You can try to reinstall the certificates:
Make sure first that you have certificates installed on your Debian in /etc/ssl/certs.
If not, reinstall them:
sudo apt-get install --reinstall ca-certificates
Since that package does not include root certificates, add:
sudo mkdir /usr/local/share/ca-certificates/cacert.org
sudo wget -P /usr/local/share/ca-certificates/cacert.org http://www.cacert.org/certs/root.crt http://www.cacert.org/certs/class3.crt
sudo update-ca-certificates
Make sure your git does reference those CA:
git config --global http.sslCAinfo /etc/ssl/certs/ca-certificates.crt
another question: we're not able to use both function weather_dl and station_dl on our linux server. We are getting that message:
s <- stations_dl() Error: Evaluation error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none.
It's working on all the windows and mac computers on the same network. Other packages that get remote data are still working. Have you ever seen this? Any idea?
Thanks, E.
Le lun. 30 sept. 2019 à 13:11, Steffi LaZerte notifications@github.com a écrit :
Originally posted by @ebourlon in https://github.com/ropensci/weathercan/issues/59#issuecomment-537025429