<?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[Let&#x27;s encrypt SslHandshakeFailedError]]></title><description><![CDATA[<p dir="auto">Hi,<br />
on some PCs, our Win Qt 5.7 32bit stopped communicating with our HTTPS server when our server's Let's Encrypt certificate renewed on Oct 1. The reason is probably <a href="https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/" target="_blank" rel="noopener noreferrer nofollow ugc">https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/</a></p>
<p dir="auto">QNetworkReply::sslErrors returns "The issuer certificate of a locally looked up certificate could not be found".</p>
<p dir="auto">How to fix this issue? Please note that CA certificate called ISRG Root X1 (as the webpage above mentions) is installed as CA certificate on the PC, along with old CA called DST Root CA X3.</p>
<p dir="auto">Thanks for any advice.</p>
]]></description><link>https://forum.qt.io/topic/131474/let-s-encrypt-sslhandshakefailederror</link><generator>RSS for Node</generator><lastBuildDate>Wed, 04 Nov 2026 06:51:05 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/131474.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Oct 2021 19:11:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Let&#x27;s encrypt SslHandshakeFailedError on Thu, 28 Oct 2021 21:39:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/martind">@<bdi>MartinD</bdi></a><br />
Kind of got the same issue on Qt v5.8.0 Linux cause it is built with OpenSSL v1.0. (cf <a href="https://forum.qt.io/topic/131281/qsslsocket-how-to-dump-an-expired-certificate">my thread</a>)<br />
I guess the only solution is to switch to a more recent version of Qt that uses OpenSSL 1.1.<br />
If you can't, just could add an exception in your code to allow <code>QSslError::CertificateExpired</code>... <a href="https://github.com/mbruel/testSslSock/blob/main/src/connection.cpp#L79" target="_blank" rel="noopener noreferrer nofollow ugc">cf here</a> the handshake works at the end, there is just an error that is raised.</p>
]]></description><link>https://forum.qt.io/post/687318</link><guid isPermaLink="true">https://forum.qt.io/post/687318</guid><dc:creator><![CDATA[mbruel]]></dc:creator><pubDate>Thu, 28 Oct 2021 21:39:32 GMT</pubDate></item><item><title><![CDATA[Reply to Let&#x27;s encrypt SslHandshakeFailedError on Thu, 28 Oct 2021 20:00:27 GMT]]></title><description><![CDATA[<p dir="auto">I am not asking you to delete the file, just move it out of the machine CA folder. You can always put it back after that.</p>
<p dir="auto">By the way, what are you using to connect to that site ?</p>
]]></description><link>https://forum.qt.io/post/687296</link><guid isPermaLink="true">https://forum.qt.io/post/687296</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 28 Oct 2021 20:00:27 GMT</pubDate></item><item><title><![CDATA[Reply to Let&#x27;s encrypt SslHandshakeFailedError on Wed, 27 Oct 2021 19:47:23 GMT]]></title><description><![CDATA[<p dir="auto">I understand this, but currently I don't want to delete the old CA certificate as it is possible that I won't be able to replicate the error any longer and I won't be able to find and verify permanent solution. Currently I have access only to a single PC with this issue.</p>
<p dir="auto">This is wireshark log for the failed ssl handshake:</p>
<pre><code>Frame 1256: 1010 bytes on wire (8080 bits), 1010 bytes captured (8080 bits) on interface \Device\NPF_{2001CBDC-C077-4984-B7E9-4DAA5A2A94EF}, id 0
Ethernet II, Src: Tp-LinkT_69:cc:a0 (d8:0d:17:69:cc:a0), Dst: IntelCor_a0:01:77 (f0:9e:4a:a0:01:77)
Internet Protocol Version 4, Src: 46.28.106.40, Dst: 192.168.1.158
Transmission Control Protocol, Src Port: 443, Dst Port: 52661, Seq: 4097, Ack: 518, Len: 956
[3 Reassembled TCP Segments (4374 bytes): #1253(2845), #1254(1176), #1256(353)]
Transport Layer Security
    TLSv1.2 Record Layer: Handshake Protocol: Certificate
        Content Type: Handshake (22)
        Version: TLS 1.2 (0x0303)
        Length: 4369
        Handshake Protocol: Certificate
            Handshake Type: Certificate (11)
            Length: 4365
            Certificates Length: 4362
            Certificates (4362 bytes)
                Certificate Length: 1667
                Certificate: 3082067f30820567a003020102021203777f7da54e0c1fc0a5099e2c227d84a325300d06… (id-at-commonName=domain.com)
                Certificate Length: 1306
                Certificate: 30820516308202fea003020102021100912b084acf0c18a753f6d62e25a75f5a300d0609… (id-at-commonName=R3,id-at-organizationName=Let's Encrypt,id-at-countryName=US)
                Certificate Length: 1380
                Certificate: 3082056030820448a00302010202104001772137d4e942b8ee76aa3c640ab7300d06092a… (id-at-commonName=ISRG Root X1,id-at-organizationName=Internet Security Research Group,id-at-countryName=US)
Transport Layer Security
    TLSv1.2 Record Layer: Handshake Protocol: Server Key Exchange
        Content Type: Handshake (22)
        Version: TLS 1.2 (0x0303)
        Length: 589
        Handshake Protocol: Server Key Exchange
            Handshake Type: Server Key Exchange (12)
            Length: 585
            EC Diffie-Hellman Server Params
    TLSv1.2 Record Layer: Handshake Protocol: Server Hello Done
        Content Type: Handshake (22)
        Version: TLS 1.2 (0x0303)
        Length: 4
        Handshake Protocol: Server Hello Done
            Handshake Type: Server Hello Done (14)
            Length: 0
</code></pre>
<p dir="auto">You can see that the certificate chain is the same as Edge or Chrome displays (<a href="http://mydomain.com" target="_blank" rel="noopener noreferrer nofollow ugc">mydomain.com</a> -&gt; R3 -&gt; ISRG Root X1)</p>
]]></description><link>https://forum.qt.io/post/687072</link><guid isPermaLink="true">https://forum.qt.io/post/687072</guid><dc:creator><![CDATA[MartinD]]></dc:creator><pubDate>Wed, 27 Oct 2021 19:47:23 GMT</pubDate></item><item><title><![CDATA[Reply to Let&#x27;s encrypt SslHandshakeFailedError on Wed, 27 Oct 2021 19:38:29 GMT]]></title><description><![CDATA[<p dir="auto">I didn't mean that as a solution, just move it away temporarily to determine if it's the source of the issue you currently have.</p>
]]></description><link>https://forum.qt.io/post/687071</link><guid isPermaLink="true">https://forum.qt.io/post/687071</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 27 Oct 2021 19:38:29 GMT</pubDate></item><item><title><![CDATA[Reply to Let&#x27;s encrypt SslHandshakeFailedError on Wed, 27 Oct 2021 19:30:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> said in <a href="/post/687067">Let's encrypt SslHandshakeFailedError</a>:</p>
<blockquote>
<p dir="auto">What if you remove the now defunct certificate ?</p>
</blockquote>
<p dir="auto">Our server's certificate is tied to R3 which is tied to ISRG Root X1 (as displayed using Chrome or Edge where we can access our HTTPS server on the same PC where Qt is not able to)</p>
<p dir="auto">The removal of the expired CA certificate is not acceptable solution as we don't have access to clients's computers running our software. I have one PC with this problem in my hands but currently I don't want to delete the old CA certificate as it is possible that I won't be able to replicate the error any longer.</p>
]]></description><link>https://forum.qt.io/post/687068</link><guid isPermaLink="true">https://forum.qt.io/post/687068</guid><dc:creator><![CDATA[MartinD]]></dc:creator><pubDate>Wed, 27 Oct 2021 19:30:28 GMT</pubDate></item><item><title><![CDATA[Reply to Let&#x27;s encrypt SslHandshakeFailedError on Wed, 27 Oct 2021 19:17:34 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Is your new certificate tied to the new intermediate ?</p>
<p dir="auto">What if you remove the now defunct certificate ?</p>
]]></description><link>https://forum.qt.io/post/687067</link><guid isPermaLink="true">https://forum.qt.io/post/687067</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 27 Oct 2021 19:17:34 GMT</pubDate></item></channel></rss>