<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[HAProxy And ACME standalone]]></title><description><![CDATA[<p dir="auto">Hi - I've decided to setup HAProxy for use with ACME as my Dynamic DNS provider does not allow the creation of _acme-challenge subdomains for manual validation or nsupdate.</p>
<p dir="auto">I already have a basic setup for HAproxy for two http web servers.  I have a single shared frontend for http, and then two frontends pointing to two backends.  This all works fine - however I'd like to use the standalone verification method in ACME (not overly fussed about automating it at this stage)</p>
<p dir="auto">What would I add to HAProxy to do this?</p>
<p dir="auto">Many thanks</p>
]]></description><link>https://forum.netgate.com/topic/117728/haproxy-and-acme-standalone</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 12:07:16 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/117728.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Jul 2017 18:37:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HAProxy And ACME standalone on Thu, 06 Jul 2017 23:23:23 GMT]]></title><description><![CDATA[<p dir="auto">Hi Mats - I've managed to get a bit further.  I decided to start from fresh.</p>
<p dir="auto">I created 3 backends like so:-</p>
<p dir="auto"><strong>ACME</strong></p>
<pre><code>active	localacmeserv	Address+Port:	192.168.50.10	8126	no
</code></pre>
<p dir="auto"><strong>WebServers</strong></p>
<pre><code>active	THEMIS	Address+Port:	192.168.50.189	80	no	
</code></pre>
<p dir="auto"><strong>WebServers2</strong></p>
<pre><code>active	GLAUCUS	Address+Port:	192.168.50.185	80	no	
</code></pre>
<p dir="auto">I created 4 Frontends :-</p>
<p dir="auto"><strong>HTTP-Edge</strong></p>
<p dir="auto">Any (IPv4) 80<br />
Any (IPv6) 80<br />
Any (IPv4) 443<br />
Any (IPv6) 443</p>
<p dir="auto">Use "forwardfor" option - Ticked (Wasn't sure if this is needed or not)</p>
<p dir="auto"><strong>WebServers</strong></p>
<p dir="auto">Shared Frontend option - ticked<br />
Primary frontend - HTTP-Edge</p>
<pre><code>ACL1	Host matches:	no	www.mywebsite.co.uk
</code></pre>
<p dir="auto">Actions</p>
<pre><code>Use Backend	See below	ACL1
</code></pre>
<p dir="auto">Use backend WebServers</p>
<p dir="auto">I then cloned this frontend an setup an ACL for my second website to the Webservers2 backend.  This all seems to work.</p>
<p dir="auto">I created a final frontend for ACME like so:-</p>
<p dir="auto"><strong>ACMEFrontend</strong></p>
<p dir="auto">Shared front end - ticked<br />
Front end - HTTP-Edge</p>
<pre><code>acme	Path starts with:	yes	/.well-known/acme-challenge
</code></pre>
<pre><code>Use Backend	See below	acme
</code></pre>
<p dir="auto">Backend points to ACME backend.</p>
<p dir="auto">Attempt to renew Exchange 2013 SAN certificate which has</p>
<pre><code>enabled	mail.mydomain.co.uk	standalone HTTP server
</code></pre>
<p dir="auto">Port 8126</p>
<pre><code>Enabled	autodiscover.mydomain.co.uk	standalone HTTP server
</code></pre>
<p dir="auto">Port 8126</p>
<p dir="auto">[Fri Jul 7 00:20:11 BST 2017] Standalone mode.<br />
[Fri Jul 7 00:20:12 BST 2017] Standalone mode.<br />
[Fri Jul 7 00:20:12 BST 2017] Multi domain='DNS:autodiscover.mydomain.co.uk'<br />
[Fri Jul 7 00:20:12 BST 2017] Getting domain auth token for each domain<br />
[Fri Jul 7 00:20:12 BST 2017] Getting webroot for domain='mail.mydomain.co.uk'<br />
[Fri Jul 7 00:20:12 BST 2017] Getting new-authz for domain='mail.mydomain.co.uk'<br />
[Fri Jul 7 00:20:28 BST 2017] The new-authz request is ok.<br />
[Fri Jul 7 00:20:28 BST 2017] Getting webroot for domain='autodiscover.mydomain.co.uk'<br />
[Fri Jul 7 00:20:28 BST 2017] Getting new-authz for domain='autodiscover.mydomain.co.uk'<br />
[Fri Jul 7 00:20:30 BST 2017] The new-authz request is ok.<br />
[Fri Jul 7 00:20:30 BST 2017] mail.mydomain.co.uk is already verified, skip http-01.<br />
[Fri Jul 7 00:20:30 BST 2017] Verifying:autodiscover.mydomain.co.uk<br />
[Fri Jul 7 00:20:30 BST 2017] Standalone mode server<br />
[Fri Jul 7 00:20:36 BST 2017] autodiscover.mydomain.co.uk:Verify error:Invalid response from http://autodiscover.mydomain.co.uk/.well-known/acme-challenge/-G-QfC3FZa66VzIHB2rvanHig3CqBxJPONFSdO0QxLs</p>
<p dir="auto">The Exchange 2013 server is running behind the firewall.</p>
<p dir="auto">Any ideas? - This is hurting my brain!</p>
]]></description><link>https://forum.netgate.com/post/710010</link><guid isPermaLink="true">https://forum.netgate.com/post/710010</guid><dc:creator><![CDATA[yuljk]]></dc:creator><pubDate>Thu, 06 Jul 2017 23:23:23 GMT</pubDate></item><item><title><![CDATA[Reply to HAProxy And ACME standalone on Thu, 06 Jul 2017 22:21:17 GMT]]></title><description><![CDATA[<p dir="auto">it was worth testing, sorry it didn't help.<br />
If I understand you correctly you got HA proxy working for port 80 for your two websites. That would prove that http traffic gets to the HA proxy.</p>
<p dir="auto">The next thing I would look at if it's the right rule that is being used. Do you have any acl:s on the primary frontend that might cause ha proxy to try to use that instead of your secondary listner?</p>
]]></description><link>https://forum.netgate.com/post/709999</link><guid isPermaLink="true">https://forum.netgate.com/post/709999</guid><dc:creator><![CDATA[Mats]]></dc:creator><pubDate>Thu, 06 Jul 2017 22:21:17 GMT</pubDate></item><item><title><![CDATA[Reply to HAProxy And ACME standalone on Thu, 06 Jul 2017 18:29:40 GMT]]></title><description><![CDATA[<p dir="auto">For reference I am using the same setup as corey https://forum.pfsense.org/index.php?topic=130598.0 but am not using a https redirect</p>
]]></description><link>https://forum.netgate.com/post/709939</link><guid isPermaLink="true">https://forum.netgate.com/post/709939</guid><dc:creator><![CDATA[yuljk]]></dc:creator><pubDate>Thu, 06 Jul 2017 18:29:40 GMT</pubDate></item><item><title><![CDATA[Reply to HAProxy And ACME standalone on Thu, 06 Jul 2017 18:26:24 GMT]]></title><description><![CDATA[<p dir="auto">Changed the backend IP from the loopback address to the LAN IP of the FW</p>
<p dir="auto">[Thu Jul 6 19:24:56 BST 2017] Pending<br />
OPTIONS / HTTP/1.0<br />
X-Forwarded-Proto: http<br />
X-Forwarded-For: 192.168.50.10</p>
<p dir="auto">[Thu Jul 6 19:24:58 BST 2017] storefront.apollon-domain.co.uk:Verify error:Fetching http://storefront.apollon-domain.co.uk/.well-known/acme-challenge/VdHX3VX3dV7p_hKtmK8m0UZga4hn5aWLSCNHj2MQfIQ: Timeout<br />
[Thu Jul 6 19:24:59 BST 2017] Please check log file for more details: /tmp/acme/storefront.apollon-domain.co.uk/acme_issuecert.log</p>
<p dir="auto">Still not working :(</p>
]]></description><link>https://forum.netgate.com/post/709936</link><guid isPermaLink="true">https://forum.netgate.com/post/709936</guid><dc:creator><![CDATA[yuljk]]></dc:creator><pubDate>Thu, 06 Jul 2017 18:26:24 GMT</pubDate></item><item><title><![CDATA[Reply to HAProxy And ACME standalone on Thu, 06 Jul 2017 18:15:00 GMT]]></title><description><![CDATA[<p dir="auto">I'm not 100% sure but can you try change your backend config from pointing at 127.0.0.1 to the ip of your lan interface. I got mine pointed at my lan address.</p>
]]></description><link>https://forum.netgate.com/post/709929</link><guid isPermaLink="true">https://forum.netgate.com/post/709929</guid><dc:creator><![CDATA[Mats]]></dc:creator><pubDate>Thu, 06 Jul 2017 18:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to HAProxy And ACME standalone on Thu, 06 Jul 2017 16:43:33 GMT]]></title><description><![CDATA[<p dir="auto">OK - So I took a look at the links and I still can't get it working.</p>
<p dir="auto">I have two rules created in my firewall, one for port 80 the other for 443.</p>
<p dir="auto">I have disabled the webConfigurator redirect rule.</p>
<p dir="auto">System -&gt; Advanced -&gt; Admin Access</p>
<p dir="auto">Protocol = HTTPS<br />
TCP port = 44300<br />
WebGUI redirect = Disable webConfigurator redirect rule ENABLED</p>
<p dir="auto">My current setup is the following.</p>
<p dir="auto">I have a shared frontend setup called 'SharedFrontend' - all I have configured for this is 4 listen addresses, WAN IPv6, WAN IPv4 - for port 80 and 443 respectively.</p>
<p dir="auto">I then created a new frontend called 'ACME' with shared front end ticked and primary frontend pointed to 'SharedFrontend'<br />
Under ACL I have</p>
<pre><code>ACME	Path starts with:	yes	/.well-known/acme-challenge
</code></pre>
<p dir="auto">Under actions I'm pointing to my new backend, which I've configured like so:-</p>
<pre><code>active	localacmeserv	Address+Port:	127.0.0.1	8126	no
</code></pre>
<p dir="auto">Finally under ACME I have configured the certs to use Standalone HTTP Server and port 8126.</p>
<p dir="auto">The logs from ACME show the following</p>
<p dir="auto">[Thu Jul  6 03:16:26 BST 2017] errordetail='Invalid response from http://mail.mydomain.co.uk/.well-known/acme-challenge/3-_G89BXrUAk27PmlPXWQerXKe_wonzuNFcXemxQBL0 [86.16.238.175]: 503'<br />
[Thu Jul  6 03:16:26 BST 2017] mail.mydomain.co.uk:Verify error:Invalid response from http://mail.mydomain.co.uk/.well-known/acme-challenge/3-_G89BXrUAk27PmlPXWQerXKe_wonzuNFcXemxQBL0 [86.16.238.175]: 503<br />
[Thu Jul  6 03:16:26 BST 2017] h_api<br />
[Thu Jul  6 03:16:26 BST 2017] Skip for removelevel:<br />
[Thu Jul  6 03:16:26 BST 2017] pid='75347'<br />
[Thu Jul  6 03:16:26 BST 2017] Le_HTTPPort='80'<br />
[Thu Jul  6 03:16:26 BST 2017] GET<br />
[Thu Jul  6 03:16:26 BST 2017] url='http://localhost:80'<br />
[Thu Jul  6 03:16:26 BST 2017] timeout='1'<br />
[Thu Jul  6 03:16:26 BST 2017] curl exists=0<br />
[Thu Jul  6 03:16:26 BST 2017] wget exists=127<br />
[Thu Jul  6 03:16:26 BST 2017] _CURL='curl -L –silent --dump-header /tmp/acme/mail.mydomain.co.uk//http.header  --connect-timeout 1'<br />
[Thu Jul  6 03:16:26 BST 2017] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 60<br />
[Thu Jul  6 03:16:26 BST 2017] ret='60'<br />
[Thu Jul  6 03:16:26 BST 2017] Le_TLSPort<br />
[Thu Jul  6 03:16:26 BST 2017] No need to restore nginx, skip.<br />
[Thu Jul  6 03:16:26 BST 2017] _clearupdns<br />
[Thu Jul  6 03:16:27 BST 2017] Dns not added, skip.<br />
[Thu Jul  6 03:16:27 BST 2017] _on_issue_err<br />
[Thu Jul  6 03:16:27 BST 2017] Please check log file for more details: /tmp/acme/mail.mydomain.co.uk/acme_issuecert.log<br />
[Thu Jul  6 03:16:27 BST 2017] _chk_vlist='mail.mydomain.co.uk#3-</p>
<p dir="auto">Weirdly it shows the URL as http:// when it should be https://</p>
<p dir="auto">I'm yet to configure HAVProxy for my various servers on port 443 - I'll have to figure that out after I've got this working..</p>
<p dir="auto">Any help greatly appreciated with this - happy to do a TeamViewer session or whatever as there is a boatload of screens to screendump</p>
]]></description><link>https://forum.netgate.com/post/709901</link><guid isPermaLink="true">https://forum.netgate.com/post/709901</guid><dc:creator><![CDATA[yuljk]]></dc:creator><pubDate>Thu, 06 Jul 2017 16:43:33 GMT</pubDate></item><item><title><![CDATA[Reply to HAProxy And ACME standalone on Thu, 06 Jul 2017 15:23:47 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Mats - I'll take a look.</p>
]]></description><link>https://forum.netgate.com/post/709875</link><guid isPermaLink="true">https://forum.netgate.com/post/709875</guid><dc:creator><![CDATA[yuljk]]></dc:creator><pubDate>Thu, 06 Jul 2017 15:23:47 GMT</pubDate></item><item><title><![CDATA[Reply to HAProxy And ACME standalone on Thu, 06 Jul 2017 09:07:41 GMT]]></title><description><![CDATA[<p dir="auto">take a look at https://forum.pfsense.org/index.php?topic=130598.0 and https://forum.pfsense.org/index.php?topic=129376.msg714035#msg714035</p>
<p dir="auto">the later one describes how I got it to work</p>
]]></description><link>https://forum.netgate.com/post/709789</link><guid isPermaLink="true">https://forum.netgate.com/post/709789</guid><dc:creator><![CDATA[Mats]]></dc:creator><pubDate>Thu, 06 Jul 2017 09:07:41 GMT</pubDate></item></channel></rss>