# Making certbot use an HTTP proxy?

**URL:** <https://community.letsencrypt.org/t/making-certbot-use-an-http-proxy/182865>\
**Category:** Help\
**Created:** [August 15, 2022, 12:47pm UTC](https://community.letsencrypt.org/t/making-certbot-use-an-http-proxy/182865 "2022-08-15T12:47:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![troelsarvin](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/troelsarvin/32/63147_2.png) [@troelsarvin](https://community.letsencrypt.org/u/troelsarvin)\
**Post date:** [August 15, 2022, 12:47pm UTC](https://community.letsencrypt.org/t/making-certbot-use-an-http-proxy/182865/1 "2022-08-15T12:47:40Z")

</div>

I've successfully set up a server to use Let's Encrypt, employing DNS records via Cloudflare. Publishing DNS entries on Cloudflare entails running HTTPS requests to an API at Cloudflare.

My initial enrollment worked, because I set up HTTP\_PROXY and HTTPS\_PROXY in the environment of my shell. But when I then subsequently try forcing a renewal, it fails, because of HTTPS connectivity issues.

What's the cleanest way to make certbot use a proxy for outgoing HTTP requests? I could write a script which exports the HTTP(S)\_PROXY variables and then do the renewal. But I'm thinking there might be a cleaner way, perhaps using some config parameter in Certbot?

--  
Regards,  
Troels Arvin

---

<div class="post-metadata">

**Author:** ![MikeMcQ](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mikemcq/32/52772_2.png) [@MikeMcQ](https://community.letsencrypt.org/u/MikeMcQ)\
**Post date:** [August 15, 2022, 2:38pm UTC](https://community.letsencrypt.org/t/making-certbot-use-an-http-proxy/182865/2 "2022-08-15T14:38:03Z")

</div>

I don't think there are any undocumented certbot settings for that. Here are two threads with comments by a certbot dev for different options to set the variable. I thought the systemd method was clever although is only works with scheduled tasks.

> [@Running certbot behind proxy](https://community.letsencrypt.org/t/running-certbot-behind-proxy/153874):
>
> H…

> [@Error running certbot behind a http proxy](https://community.letsencrypt.org/t/error-running-certbot-behind-a-http-proxy/173147/9):
>
> …

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [September 14, 2022, 2:38pm UTC](https://community.letsencrypt.org/t/making-certbot-use-an-http-proxy/182865/3 "2022-09-14T14:38:53Z")

</div>

Closed on September 14, 2022, 2:38pm UTC

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