<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ISRG Root X1 certificate fails to parse</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109620/isrg-root-x1-certificate-fails-to-parse</link><description>Hi, 
 I have a root certificate that is used by the popular TLS certificate service Let&amp;#39;s Encrypt that fails to parse in NCS 2.6.0 on the nrf9160dk. You can find the certificate here: https://letsencrypt.org/certs/isrgrootx1.pem.txt (I also exported this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Feb 2025 13:48:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109620/isrg-root-x1-certificate-fails-to-parse" /><item><title>RE: ISRG Root X1 certificate fails to parse</title><link>https://devzone.nordicsemi.com/thread/521559?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 13:48:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b020230-455c-4863-a1aa-66a9288157af</guid><dc:creator>MarkoSagadin</dc:creator><description>&lt;p&gt;Hello Jeremy!&lt;br /&gt;&lt;br /&gt;Thank you very much for providing this answer. Adding &lt;code&gt;CONFIG_MBEDTLS_MPI_MAX_SIZE=512 &lt;/code&gt;to my prj.conf made it possible to connect to a different public broker (broker.emqx.io).&lt;br /&gt;&lt;br /&gt;Provide some context for anybody coming from the internet:&lt;br /&gt;&lt;br /&gt;I had a similar issue on NCS v2.7.0 with the mqtt sample. I could connect via TLS to the sample&amp;#39;s default mqtt broker (mosquitto) without a problem, however I couldn&amp;#39;t connect to the broker.emqx.io.&lt;br /&gt;&lt;br /&gt;The annoying thing about this was that I made a successfully connection with the emqx broker, a year ago, with the NCS v.2.5.2.&lt;br /&gt;&lt;br /&gt;The logs themselves were pretty much not useful:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
[00:00:00.539,855] &amp;lt;inf&amp;gt; network: Bringing network interface up and connecting to the network
[00:00:00.540,374] &amp;lt;dbg&amp;gt; mqtt_helper: mqtt_state_set: State transition: MQTT_STATE_UNINIT --&amp;gt; MQTT_STATE_DISCONNECTED
[00:00:00.542,419] &amp;lt;dbg&amp;gt; mqtt_helper: mqtt_helper_poll_loop: Waiting for connection_poll_sem
[00:00:02.109,527] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested
[00:00:06.183,624] &amp;lt;inf&amp;gt; net_dhcpv4: Received: 192.168.76.247
[00:00:06.183,898] &amp;lt;inf&amp;gt; network: Network connectivity established
[00:00:11.185,821] &amp;lt;dbg&amp;gt; mqtt_helper: broker_init: Resolving IP address for broker.emqx.io
[00:00:11.202,972] &amp;lt;err&amp;gt; net_dns_resolve: DNS recv error (-103)
[00:00:11.730,163] &amp;lt;dbg&amp;gt; mqtt_helper: broker_init: IPv4 Address found 34.243.217.54 (AF_INET)
[00:00:11.730,194] &amp;lt;dbg&amp;gt; mqtt_helper: certificates_provision: CA certificate already exists, sec tag: 955
[00:00:11.730,255] &amp;lt;dbg&amp;gt; mqtt_helper: mqtt_state_set: State transition: MQTT_STATE_DISCONNECTED --&amp;gt; MQTT_STATE_TRANSPORT_CONNECTING
[00:00:11.730,957] &amp;lt;dbg&amp;gt; net_mqtt_sock_tls: mqtt_client_tls_connect: (): Created socket 14
[00:00:11.732,666] &amp;lt;err&amp;gt; net_dns_resolve: DNS recv error (-4)
[00:00:12.072,814] &amp;lt;err&amp;gt; net_sock_tls: TLS handshake error: -0x3b00
[00:00:12.080,200] &amp;lt;err&amp;gt; mqtt_helper: mqtt_connect, error: -113
[00:00:12.080,261] &amp;lt;dbg&amp;gt; mqtt_helper: mqtt_state_set: State transition: MQTT_STATE_TRANSPORT_CONNECTING --&amp;gt; MQTT_STATE_DISCONNECTED
[00:00:12.080,261] &amp;lt;err&amp;gt; transport: Failed connecting to MQTT, error code: -113
uart:~$
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Even when I enabled mbedtls logs (check this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/116745/enabling-logs-in-mbed-tls"&gt;Devzone post&lt;/a&gt; on how to do that) I wouldn&amp;#39;t get any hint to what was happening:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
[00:00:00.585,388] &amp;lt;inf&amp;gt; network: Bringing network interface up and connecting to the network
[00:00:00.585,876] &amp;lt;dbg&amp;gt; mqtt_helper: mqtt_state_set: State transition: MQTT_STATE_UNINIT --&amp;gt; MQTT_STATE_DISCONNECTED
[00:00:00.587,921] &amp;lt;dbg&amp;gt; mqtt_helper: mqtt_helper_poll_loop: Waiting for connection_poll_sem
[00:00:02.150,543] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested
[00:00:06.226,562] &amp;lt;inf&amp;gt; net_dhcpv4: Received: 192.168.76.247
[00:00:06.226,867] &amp;lt;inf&amp;gt; network: Network connectivity established
--- 144 messages dropped ---
[00:00:11.963,592] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3037: 0110:  97 f9 b2 62 3c ce aa 31 42 6f bc 00 0b 7a cd da  ...b&amp;lt;..1Bo...z..
[00:00:11.963,836] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3037: 0120:  c2 72 ed 00 ba 25 c0 51 37 9b 62 5e ed 23 b2 b9  .r...%.Q7.b^.#..
[00:00:11.964,080] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3037: 0130:  9f 09 c0 25 24 18 ef d2 52 41 ec 60 59 eb e4 d0  ...%$...RA.`Y...
--- 72 messages dropped ---
[00:00:11.964,324] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3037: 0140:  ed 3d af a9 20 0d 9e ec 61 37 ce d1 a1 b1 4d 09  .=.. ...a7....M.
[00:00:11.964,569] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3037: 0150:  d8 2f 30 9c c1 eb 31 fc ff 54 f6 d8 b0 66 ff 2f  ./0...1..T...f./
--- 33 messages dropped ---
[00:00:11.964,813] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3037: 0160:  2c 11 aa 25 e1 41 04 98 7f e2 29 10 e8 32 aa 2f  ,..%.A....)..2./
[00:00:11.965,026] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3037: 0170:  fc e7 94 54 62 fe bf dc cf bb 79 bc 66 fa b6 8d  ...Tb.....y.f...
--- 257 messages dropped ---
[00:00:12.033,752] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_tls12_client.c:1662: &amp;lt;= parse server hello
[00:00:12.033,813] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:2358: =&amp;gt; flush output
[00:00:12.041,015] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:2323: ssl-&amp;gt;f_recv(_timeout)() returned 768 (-0xfffffd00)
[00:00:12.041,107] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:2320: in_left: 1439, nb_want: 3437
[00:00:12.041,198] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_tls.c:3925: &amp;lt;= handshake
[00:00:12.090,881] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_tls.c:3914: =&amp;gt; handshake
[00:00:12.191,650] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3976: 0cc0:  03 02 48 a8 e5 5e 9d 1d d7 b7 24 36 55 1f 36 aa  ..H..^....$6U.6.
[00:00:12.191,894] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3976: 0cd0:  10 ba c6 c9 71 b4 d7 fb 7f 63 5d c7 61 bb 31 e9  ....q....c].a.1.
[00:00:12.192,138] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3976: 0ce0:  b8 c2 91 61 c8 f0 d3 d8 fe 94 27 63 27 ac 3f 85  ...a......&amp;#39;c&amp;#39;.?.
[00:00:12.192,352] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3976: 0cf0:  0b ff d9 28 7e 7f 11 1a 3d ea 08 73 f1 5a 8d 96  ...(~...=..s.Z..
[00:00:12.192,596] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3976: 0d00:  62 f9 45 7a 3c 2a cf 6b 32 bf c0 77 dc 70 63 88  b.Ez&amp;lt;*.k2..w.pc.
[00:00:12.192,840] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3976: 0d10:  72 46 f0 33 e7 dd b4 9b 25 1f 7f 07 54 a9 cd 12  rF.3....%...T...
[00:00:12.193,084] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3976: 0d20:  bc f9 45 9d a8 6c 66 0d 79 b9 3e 47 90 ae 3c b4  ..E..lf.y.&amp;gt;G..&amp;lt;.
[00:00:12.193,328] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3976: 0d30:  74 74 4c bb 8b 1f c6 91 a7 38 78 28 9f d8 a7 4b  ttL......8x(...K
[00:00:12.193,572] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3976: 0d40:  00 44 d6 fe f6 2d 51 e0 58 39 cc f3 6f 1e cd 81  .D...-Q.X9..o...
[00:00:12.193,786] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3976: 0d50:  6c 8b de d2 f9 30 c4 0c be 47 8e f6 ee a6 33 97  l....0...G....3.
[00:00:12.194,030] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3976: 0d60:  7d 36 ef 0f 63 10 50 ba 1c c5 d1 68 37           }6..c.P....h7
[00:00:12.194,152] &amp;lt;inf&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3242: handshake message: msglen = 3432, type = 11, hslen = 3432
[00:00:12.201,965] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:4194: &amp;lt;= read record
[00:00:12.203,765] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:5103: =&amp;gt; send alert message
[00:00:12.203,857] &amp;lt;inf&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:5104: send alert level=2 message=42
[00:00:12.203,918] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:2948: =&amp;gt; write record
[00:00:12.204,040] &amp;lt;inf&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3032: output record: msgtype = 21, version = [3:3], msglen = 2
[00:00:12.204,132] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3037: dumping &amp;#39;output record sent to network&amp;#39; (7 bytes)
[00:00:12.204,315] &amp;lt;dbg&amp;gt; mbedtls: zephyr_mbedtls_debug: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3037: 0000:  15 03 03 00 02 02 2a                             ......*
[00:00:12.204,376] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:2358: =&amp;gt; flush output
[00:00:12.204,467] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:2372: message length: 7, out_left: 7
[00:00:12.204,864] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:2379: ssl-&amp;gt;f_send() returned 7 (-0xfffffff9)
[00:00:12.204,925] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:2406: &amp;lt;= flush output
[00:00:12.204,986] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:3085: &amp;lt;= write record
[00:00:12.205,047] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:5115: &amp;lt;= send alert message
[00:00:12.205,139] &amp;lt;err&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_tls.c:7192:  mbedtls_x509_crt_parse_der() returned -15104 (-0x3b00)
[00:00:12.205,505] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_tls.c:3925: &amp;lt;= handshake
[00:00:12.205,535] &amp;lt;err&amp;gt; net_sock_tls: TLS handshake error: -0x3b00
[00:00:12.209,228] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:5974: =&amp;gt; write close notify
[00:00:12.209,289] &amp;lt;wrn&amp;gt; mbedtls: WEST_TOPDIR/modules/crypto/mbedtls/library/ssl_msg.c:5985: &amp;lt;= write close notify
[00:00:12.213,043] &amp;lt;err&amp;gt; mqtt_helper: mqtt_connect, error: -113
[00:00:12.213,104] &amp;lt;dbg&amp;gt; mqtt_helper: mqtt_state_set: State transition: MQTT_STATE_TRANSPORT_CONNECTING --&amp;gt; MQTT_STATE_DISCONNECTED
[00:00:12.213,104] &amp;lt;err&amp;gt; transport: Failed connecting to MQTT, error code: -113
uart:~$
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So the der parser failed above. Running gdb through the mbedtls code to figue why is not fun...&lt;br /&gt;&lt;br /&gt;So yes, for me the mentioned config worked. Thank you again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ISRG Root X1 certificate fails to parse</title><link>https://devzone.nordicsemi.com/thread/475822?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2024 07:59:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2813e9b-7234-4d15-bbc1-3d12bed7bee8</guid><dc:creator>jeremyherbert</dc:creator><description>&lt;p&gt;I ended up finding the problem - by default, mbedtls is built with MPI_MAX_SIZE=256 which means that the largest RSA key size supported is 2048 bits. Instead, you need to build with&amp;nbsp;CONFIG_MBEDTLS_MPI_MAX_SIZE=512 to support 4096 bit keys. It would be helpful if there was a more useful error in this case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest at least adding to the readme here that 4096 bit keys are not supported by default:&amp;nbsp;&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/net/https_client"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/samples/net/https_client&lt;/a&gt;&amp;nbsp;- otherwise it is very non-obvious what needs doing. Can I also suggest adding some documentation somewhere about what the maximum RSA/ECDSA key sizes are too? There are a lot of places that mention that the certificate size can&amp;#39;t be over 4kB, but the certificate in this case is well under this limit.&lt;/p&gt;
&lt;p&gt;Note that the TLS offload system also only supports a maximum of 2048 bit keys, though I haven&amp;#39;t found a place where this is documented (and neither for the maximum ECDSA key size).&lt;/p&gt;
&lt;p&gt;In my case, the ISRG root certificate is 4096 bits so it can&amp;#39;t be used with TLS offloading or the default mbedtls configuration. The solution with Let&amp;#39;s Encrypt is to use an intermediate certificate as the CA certificate which is 2048 bits:&amp;nbsp;&lt;a id="" href="https://letsencrypt.org/certificates/"&gt;https://letsencrypt.org/certificates/&lt;/a&gt;&amp;nbsp;- at this point in time, the &amp;quot;R3&amp;quot; certificate is 2048 bits so that is the one that should be used. However, the expiry time is much shorter than the root certificate (intermediate is 2025 vs 2035 for the root certificate) so that becomes a problem in itself.&lt;/p&gt;
&lt;p&gt;Also please note that this unsolved issue may be related:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/89819/nrf9160-native-tls-with-offload-sockets-and-mqtt-client"&gt;devzone.nordicsemi.com/.../nrf9160-native-tls-with-offload-sockets-and-mqtt-client&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ISRG Root X1 certificate fails to parse</title><link>https://devzone.nordicsemi.com/thread/475762?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 21:58:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac56ebd8-293d-4b6a-aa40-f3f3881e3aed</guid><dc:creator>jeremyherbert</dc:creator><description>&lt;p&gt;Just to add to this, I have built mbedtls on my host machine (mac, x86) and it is able to parse the certificate with no problems:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ ./ssl_client2 server_name=letsencrypt.org server_port=443 ca_file=isrgrootx1.pem debug_level=1
build version: Mbed TLS 3.5.2 (build 50659840)

  . Seeding the random number generator... ok
  . Loading the CA root certificate ... ok (0 skipped)
  . Loading the client cert. and key... ok (key type: RSA)
  . Setting up the SSL/TLS structure... ok
  . Connecting to tcp/letsencrypt.org/443... ok
  . Performing the SSL/TLS handshake...
Verify requested for (Depth 2):
cert. version     : 3
serial number     : 82:10:CF:B0:D2:40:E3:59:44:63:E0:BB:63:82:8B:00
issuer name       : C=US, O=Internet Security Research Group, CN=ISRG Root X1
subject name      : C=US, O=Internet Security Research Group, CN=ISRG Root X1
issued  on        : 2015-06-04 11:04:38
expires on        : 2035-06-04 11:04:38
signed using      : RSA with SHA-256
RSA key size      : 4096 bits
basic constraints : CA=true
key usage         : Key Cert Sign, CRL Sign
  This certificate has no flags

Verify requested for (Depth 1):
cert. version     : 3
serial number     : 91:2B:08:4A:CF:0C:18:A7:53:F6:D6:2E:25:A7:5F:5A
issuer name       : C=US, O=Internet Security Research Group, CN=ISRG Root X1
subject name      : C=US, O=Let&amp;#39;s Encrypt, CN=R3
issued  on        : 2020-09-04 00:00:00
expires on        : 2025-09-15 16:00:00
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic constraints : CA=true, max_pathlen=0
key usage         : Digital Signature, Key Cert Sign, CRL Sign
ext key usage     : TLS Web Client Authentication, TLS Web Server Authentication
certificate policies : ???, ???
  This certificate has no flags

Verify requested for (Depth 0):
cert. version     : 3
serial number     : 04:A7:BD:BA:BE:69:67:7A:A5:DF:42:99:AB:F6:E7:F8:DD:3B
issuer name       : C=US, O=Let&amp;#39;s Encrypt, CN=R3
subject name      : CN=lencr.org
issued  on        : 2024-01-27 21:30:22
expires on        : 2024-04-26 21:30:21
signed using      : RSA with SHA-256
EC key size       : 256 bits
basic constraints : CA=false
subject alt name  :
    dNSName : lencr.org
    dNSName : letsencrypt.com
    dNSName : letsencrypt.org
    dNSName : www.lencr.org
    dNSName : www.letsencrypt.com
    dNSName : www.letsencrypt.org
key usage         : Digital Signature
ext key usage     : TLS Web Server Authentication, TLS Web Client Authentication
certificate policies : ???
  This certificate has no flags
 ok
    [ Protocol is TLSv1.2 ]
    [ Ciphersuite is TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256 ]
    [ Key size is 256 ]
    [ Record expansion is 21 ]
    [ Maximum incoming record payload length is 16384 ]
    [ Maximum outgoing record payload length is 16384 ]
  . Verifying peer X.509 certificate... ok
  . Peer certificate information    ...
cert. version     : 3
serial number     : 04:A7:BD:BA:BE:69:67:7A:A5:DF:42:99:AB:F6:E7:F8:DD:3B
issuer name       : C=US, O=Let&amp;#39;s Encrypt, CN=R3
subject name      : CN=lencr.org
issued  on        : 2024-01-27 21:30:22
expires on        : 2024-04-26 21:30:21
signed using      : RSA with SHA-256
EC key size       : 256 bits
basic constraints : CA=false
subject alt name  :
    dNSName : lencr.org
    dNSName : letsencrypt.com
    dNSName : letsencrypt.org
    dNSName : www.lencr.org
    dNSName : www.letsencrypt.com
    dNSName : www.letsencrypt.org
key usage         : Digital Signature
ext key usage     : TLS Web Server Authentication, TLS Web Client Authentication
certificate policies : ???

  &amp;gt; Write to server: 34 bytes written in 1 fragments

GET / HTTP/1.0
Extra-header:


  &amp;lt; Read from server: 146 bytes read

HTTP/1.0 400 Bad Request
Date: Mon, 25 Mar 2024 22:25:35 GMT
Server: Netlify
X-Nf-Request-Id: 01HSVVG474RHM9C83RK7FFN5PJ
Content-Length: 0

  . Closing the connection... done&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ISRG Root X1 certificate fails to parse</title><link>https://devzone.nordicsemi.com/thread/475753?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 20:14:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ee4b9f6-b8a4-4f13-a9a0-51e05e610af7</guid><dc:creator>jeremyherbert</dc:creator><description>&lt;p&gt;Hi Michal,&lt;/p&gt;
&lt;p&gt;in NCS 2.6 you do not need to manually convert the certificate to a C string - this happens via a script in the CMakeLists file. You just pass in the raw PEM file (this is how the example now works by default).&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jeremy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ISRG Root X1 certificate fails to parse</title><link>https://devzone.nordicsemi.com/thread/475642?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 12:51:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a41b9e8-2826-413d-9ef3-4f0e10a45780</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Did you convert the certificate properly? Remember that you have to escape the newlines in the certificate file to be able to include it directly in C.&lt;/p&gt;
&lt;p&gt;Please take a look at the example certificate in the sample code for how it is done.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>