[SOLVED] Proxy settings in order to use letsencrypt-auto behind a proxy

Hello,

I’m facing an issue with letsencrypt-auto. I want to run it on a private network which has access to internet through a proxy. How I can tell letsencrypt-auto to use the proxy ?

Thanks for your help
Best regards,
Nico

Hi, does the method described in Acquire and install certs on reverse proxy server configuration provide a solution for you ?

Hi Serverco,

Thanks for your reply. This is not a reverse proxy but a proxy. Here is a light schema of my architecture

My Computer with letsencrypt client ----------> business proxy (only 80 and 443 opened) ------------> Internet ---------> The domain that i want to ssl protect

I have tried to set HTTP_PROXY env variable on my computer but without success.
Hope it helps to find out the correct configuration of the letsencrypt client,

Best regards,
Nico

Hi nicocolt,

You need to set the https_proxy environment variable (and possibly also http_proxy)

e.g.

http_proxy=http://proxy.local:8080/
https_proxy=http://proxy.local:8080/

1 Like

I’m also experiencing this.

Neither the http_proxy nor https_proxy environment variables seem to be honoured.

Hi,

You’re right Chriswheeler, it was because i’ve set my env variable like this:

http_proxy=proxy:8080
https_proxy=proxy:8080

instead of

http_proxy=http://proxy:8080/
https_proxy=http://proxy:8080/

It works now,
Thanks

Best regards,
Nico

Hi Nico,

If you’ve got it working via a proxy there must be something else causing my timeout.

I’ll blame the firewall…

Hi Plocke,

You’re right, check your firewall config if you can, but if you can access to internet, you should access to letsencrypt too

Best regards,
Nico

This seems not ideal, as the information held by th http_proxy and the https_proxy variables will no appear in /etc/letsencrypt/renewal/my_site.conf.

i believe i have the same problem:

on the command line where i have the http_poxy env variables set i get correct answer.

The automatic renew does not know about the proxy.

Where to set the proxy environment vars ?

Pre hook?

best,

Bodo