Certbot-auto over http proxy

I ran this command: certbot-auto renew

It produced this output:
WARNING: unable to check for updates.
Creating virtual environment…
Installing Python packages…
Traceback (most recent call last):
File “/tmp/tmp.vDIhX9UK22/pipstrap.py”, line 146, in
exit(main())
File “/tmp/tmp.vDIhX9UK22/pipstrap.py”, line 130, in main
for url, digest in PACKAGES]
File “/tmp/tmp.vDIhX9UK22/pipstrap.py”, line 112, in hashed_download
response = opener().open(url)
File “/usr/lib/python2.7/urllib2.py”, line 401, in open
response = self._open(req, data)
File “/usr/lib/python2.7/urllib2.py”, line 419, in _open
’_open’, req)
File “/usr/lib/python2.7/urllib2.py”, line 379, in _call_chain
result = func(*args)
File “/usr/lib/python2.7/urllib2.py”, line 1219, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File “/usr/lib/python2.7/urllib2.py”, line 1181, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 101] Network is unreachable>

My operating system is (include version): Debian GNU/Linux 7 (wheezy)

My web server is (include version): nginx 1.11.5

I can login to a root shell on my machine: yes

I’m using a control panel to manage my site: no

===================
My situation is: I’m trying to renew the certificates, but my server now happens to be in a DMZ with a policy that any outbound web traffic must go through a webproxy.
(That wasn’t the case when the certificate was successfully issued a couple months ago, but things change…)

Is there a way to force certbot-auto (and whatever it’s calling to do the job) to go through the proxy server?

I already have export http_proxy=... in my rc.local, and I thought that should work, but I’m getting the output I provided above. Wget and apt work through the proxy alright.

Try setting https_proxy to the same value - some components of certbot seem to rely on that variable for proxy configuration rather than http_proxy.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.