# Haproxy LetsEncrypt

**URL:** <https://community.letsencrypt.org/t/haproxy-letsencrypt/86685>\
**Category:** Server\
**Created:** [February 20, 2019, 10:39am UTC](https://community.letsencrypt.org/t/haproxy-letsencrypt/86685 "2019-02-20T10:39:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rstomas](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@rstomas](https://community.letsencrypt.org/u/rstomas)\
**Post date:** [February 20, 2019, 10:39am UTC](https://community.letsencrypt.org/t/haproxy-letsencrypt/86685/1 "2019-02-20T10:39:52Z")

</div>

Hi,

I’ve a haproxy servers that reroutes to different host. How can I configure the haproxy server to have 1 letsencrypt cert to all host. Do i need to add the cert to all host or need to configure the haproxy server.

---

<div class="post-metadata">

**Author:** ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)\
**Post date:** [February 20, 2019, 11:03am UTC](https://community.letsencrypt.org/t/haproxy-letsencrypt/86685/2 "2019-02-20T11:03:27Z")

</div>

You can [provide a single certificate](https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#5.1-crt) to haproxy for all your domains, or [provide a list of individual certificates](https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#5.1-crt-list) for each domain.

It’s up to you, either is a valid approach.

The backends you are proxying do not need to know anything about SSL certificates, you only need to set them up on haproxy.

To do the actual setup, usually a small haproxy ACL + using Certbot in standalone mode (but on a different port) is the simplest way. Here’s one such tutorial: [https://serversforhackers.com/c/letsencrypt-with-haproxy](https://serversforhackers.com/c/letsencrypt-with-haproxy)

---

<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:** [March 22, 2019, 11:03am UTC](https://community.letsencrypt.org/t/haproxy-letsencrypt/86685/3 "2019-03-22T11:03:27Z")

</div>

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