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


#1

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


Outbound traffic - stability of IP address of acme-v01.api.letsencrypt.org
#2

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


#3

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


#4

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/


#5

I’m also experiencing this.

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


#6

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


#7

Hi Nico,

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

I’ll blame the firewall…


#8

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


#9

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.