I have an Ubuntu 20.04 Server and I have installed the Certbot via snap as described in the official documentation: Certbot - Certbot Instructions
My Problem is that i'am not able to run the Certbot correctly. When I start it with "certbot" or "certbot --nginx" it asks for my Email Address. After that the bot crashes with the following error Message:
An unexpected error occured: requests.exceptions.SSLError: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Max retries exceeded with url: /directory (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get locale issuer certificate (_ssl.c:1131)')))
I have to mention that my Server is behind a Proxy. But the Proxy is correctly defined via the environment variables http_proxy, https_proxy, HTTP_PROXY, HTTPS_PROXY.
If I try to call the above URL via CURL e.g.:
curl -v https://acme-v02.api.letsencrypt.org/directory
I get a correct Webserver Response with JSON content. My Certbot Version is 1.17.0.