<?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[Preferred Chain option when renewing certificates]]></title><description><![CDATA[<p dir="auto">Hi!  I am submitting this here because it’s not really a bug - at least not for Cloudron.</p>
<p dir="auto">I have encountered the same situation with Android clients in my implementation of AdGuard Plus that is described here: <a href="https://ikarus.sg/lets-encrypt-dot-android/" target="_blank" rel="noopener noreferrer nofollow ugc">Let’s Encrypt and DNS over TLS on Android</a>.</p>
<p dir="auto">Long story short, Let’s Encrypt’s expired X3 certificate causes problems for Android clients on DNS-over-TLS.</p>
<p dir="auto">The issue can be mitigated by invoking the option <code>—preferred-chain “ISRG Root X1”</code> when renewing Let’s Encrypt certificates, which excludes the expired certificate from the cert chain.</p>
<p dir="auto">It's in no way a Cloudron bug, but since Cloudron handles certificate renewal, it seems to me to be the best place to insert a solution.</p>
<p dir="auto">I believe Cloudron uses the ACME API in order to request renewals from Let’s Encrypt, and I would love to have the ability to specify the above option (or perhaps the ability to request other options as well might also be useful to others) within the Cloudron UI or API as part of the certificate setup/renewal.</p>
<p dir="auto">Thanks for your time, and please let me know if you need any clarification at all.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.cloudron.io/topic/6954/preferred-chain-option-when-renewing-certificates</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 14:11:19 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/6954.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 May 2022 23:58:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Preferred Chain option when renewing certificates on Fri, 13 May 2022 15:59:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lcd_official" aria-label="Profile: lcd_official">@<bdi>lcd_official</bdi></a> thanks for the kind words <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=13d69e59554" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/47842</link><guid isPermaLink="true">https://forum.cloudron.io/post/47842</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 13 May 2022 15:59:03 GMT</pubDate></item><item><title><![CDATA[Reply to Preferred Chain option when renewing certificates on Fri, 13 May 2022 14:27:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Good morning!<br />
It appears to be working perfectly!  Tested renewing cert and Android’s Private DNS function is still happy to connect to AGH via DoT.  That’s amazing - thank you for implementing that so quickly!</p>
<p dir="auto">I have to say, after using Cloudron for a while now, what you guys have built here is nothing short of amazing - with so much automation - app installation, VPS security patches, managing certs, auto DNS config + providing LDAP, quick access to Cron, integration with registrars, custom apps - I can go on for days.</p>
<p dir="auto">This really is bringing self-host to the masses…</p>
<p dir="auto">Thank you so much</p>
]]></description><link>https://forum.cloudron.io/post/47831</link><guid isPermaLink="true">https://forum.cloudron.io/post/47831</guid><dc:creator><![CDATA[lcd_official]]></dc:creator><pubDate>Fri, 13 May 2022 14:27:55 GMT</pubDate></item><item><title><![CDATA[Reply to Preferred Chain option when renewing certificates on Fri, 13 May 2022 02:50:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Hi!<br />
Sorry for the late response…. Last few days have been busy…<br />
As of package version 1.4.6 it seems it may be working, at least surviving a reboot.  I will perform additional testing in the morning including a manual renew of the cert and will report back asap.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.cloudron.io/post/47794</link><guid isPermaLink="true">https://forum.cloudron.io/post/47794</guid><dc:creator><![CDATA[lcd_official]]></dc:creator><pubDate>Fri, 13 May 2022 02:50:42 GMT</pubDate></item><item><title><![CDATA[Reply to Preferred Chain option when renewing certificates on Wed, 11 May 2022 17:43:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lcd_official" aria-label="Profile: lcd_official">@<bdi>lcd_official</bdi></a> I have tried to fix this in the latest package. Can you upgrade AdGuard and try?</p>
]]></description><link>https://forum.cloudron.io/post/47672</link><guid isPermaLink="true">https://forum.cloudron.io/post/47672</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 11 May 2022 17:43:59 GMT</pubDate></item><item><title><![CDATA[Reply to Preferred Chain option when renewing certificates on Tue, 10 May 2022 19:50:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Yes, that is exactly right.  That matches with what I found as well.</p>
<p dir="auto">Sure, I think that would make sense, if the AdGuardHome package could remove the X3 cert at start - perhaps going as far as making it an option exposed via checkbox for the user to include the X3 cert to support "legacy" Android devices, based on preference...</p>
<p dir="auto">Ultimately I believe this to be an Android issue, in the way that they have rigidly implemented DNS over TLS, but I doubt a change to Android will be anywhere near a quick fix to get implemented <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=13d69e59554" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
<p dir="auto">Let me know your thoughts...</p>
<p dir="auto">Thanks again</p>
]]></description><link>https://forum.cloudron.io/post/47623</link><guid isPermaLink="true">https://forum.cloudron.io/post/47623</guid><dc:creator><![CDATA[lcd_official]]></dc:creator><pubDate>Tue, 10 May 2022 19:50:27 GMT</pubDate></item><item><title><![CDATA[Reply to Preferred Chain option when renewing certificates on Mon, 09 May 2022 17:30:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lcd_official" aria-label="Profile: lcd_official">@<bdi>lcd_official</bdi></a> Oh, I forgot to update here, but I investigated over the weekend and found the issue.</p>
<p dir="auto">(Your probably know this, but I am just writing for general info).</p>
<p dir="auto">Let's Encrypt issues certs signed with R3 intermediate (which is Signed by ISRG Root X1). For backward compat with old android devices, there is also a X1 cross signed with IdenTrust's DST Root CA X3”.</p>
<p dir="auto">When we request the certificate "chain" via LE API, it gives us both the above two certs - R3 and the cross-signed one. It is possible to request an "alternate" chain via the LE API which only gives the first cert.</p>
<p dir="auto">It seems that Android's DNS over TLS has a (mis)feature that it gets tripped by the fact that X3 has now expired. Apparently, expiry of X3 does not affect older Android devices (https/browser related logic).</p>
<p dir="auto">I think doing this at a platform level is probably not needed. We can simply fix AdGuardHome package to simply edit the cert exposed in <code>/etc/certs/tls_cert.pem</code> to not have the final cross signed cert. What do you think?</p>
]]></description><link>https://forum.cloudron.io/post/47492</link><guid isPermaLink="true">https://forum.cloudron.io/post/47492</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 09 May 2022 17:30:14 GMT</pubDate></item><item><title><![CDATA[Reply to Preferred Chain option when renewing certificates on Mon, 09 May 2022 16:58:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Awesome!  Thanks for sharing the name of the code file.  I will look through and see if there is any way to implement something similar to certbot's '--preferred-chain' option and will share here if I can find any workaround.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.cloudron.io/post/47489</link><guid isPermaLink="true">https://forum.cloudron.io/post/47489</guid><dc:creator><![CDATA[lcd_official]]></dc:creator><pubDate>Mon, 09 May 2022 16:58:18 GMT</pubDate></item><item><title><![CDATA[Reply to Preferred Chain option when renewing certificates on Sat, 07 May 2022 03:31:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lcd_official" aria-label="Profile: lcd_official">@<bdi>lcd_official</bdi></a> thanks for reporting! I did also very much like your <a href="https://stuff.wagno.info/cloudron-adguard-letsencrypt-android/" target="_blank" rel="noopener noreferrer nofollow ugc">investigation post</a> .</p>
<p dir="auto">We have our own implementation of acme and we don't use certbot - <a href="https://git.cloudron.io/cloudron/box/-/blob/master/src/acme2.js" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/box/-/blob/master/src/acme2.js</a> . BTW, if it helps for future investigations, our code is source available.</p>
]]></description><link>https://forum.cloudron.io/post/47391</link><guid isPermaLink="true">https://forum.cloudron.io/post/47391</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sat, 07 May 2022 03:31:14 GMT</pubDate></item></channel></rss>