Recently in a docker container I got the following error message:
cURL error (77) error setting certificate verify locations: CAfile: /etc/ssl/certs/ca-certificates.crt CApath: /etc/ssl/certs for https://example.org
The solution was to install the ca-certificates via apt.