<?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>NRF9160 Certificate Provisioning failed -111 error (Connection refused)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86331/nrf9160-certificate-provisioning-failed--111-error-connection-refused</link><description>Hello, 
 
 I&amp;#39;m trying to add credential to the modem on the nrf9160. However, i keep getting a -111 error when i&amp;#39;m trying to connect to my server with TLS mode. 
 When i try to display AT%CMNG=1 command that what i get : 
 
 And here you can see the certificate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Mar 2022 15:31:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86331/nrf9160-certificate-provisioning-failed--111-error-connection-refused" /><item><title>RE: NRF9160 Certificate Provisioning failed -111 error (Connection refused)</title><link>https://devzone.nordicsemi.com/thread/360880?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 15:31:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deaf872e-8ae8-4232-8b97-a5365bd55ffe</guid><dc:creator>MehdiChelouah</dc:creator><description>&lt;p&gt;Problem solved ^^&lt;/p&gt;
&lt;p&gt;Sorry for the inconvenience.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have a nice day Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Certificate Provisioning failed -111 error (Connection refused)</title><link>https://devzone.nordicsemi.com/thread/360852?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 13:43:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ecf286a-246e-4978-b1f4-70859aecc70c</guid><dc:creator>MehdiChelouah</dc:creator><description>&lt;p&gt;The app_update.bin file that i found in a sample project https_update&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Certificate Provisioning failed -111 error (Connection refused)</title><link>https://devzone.nordicsemi.com/thread/360849?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 13:36:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcf3eb73-6832-404e-a931-7e032a430eac</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Which file are you downloading?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Certificate Provisioning failed -111 error (Connection refused)</title><link>https://devzone.nordicsemi.com/thread/360583?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 14:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:477a4d9d-6659-4a53-b233-72d1ca0e90b3</guid><dc:creator>MehdiChelouah</dc:creator><description>&lt;p&gt;Hey Didrik,&lt;/p&gt;
&lt;p&gt;Thanks for your reply,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I solved the problem with certificate but i&amp;#39;m facing another issue. Actually, i&amp;#39;m trying to use the fota_download library.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But this happens:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/InkedWIN_5F00_20220317_5F00_10_5F00_15_5F00_50_5F00_Pro_5F00_LI.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Certificate Provisioning failed -111 error (Connection refused)</title><link>https://devzone.nordicsemi.com/thread/360573?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 13:47:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95841618-588d-4365-9b71-cd2126a7c8b4</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How are you connecting to your server (what socket options do you set, etc.)?&lt;/p&gt;
&lt;p&gt;Does your server do any verification of the client?&lt;/p&gt;
[quote user=""]When i try to display AT%CMNG=1 command that what i get :[/quote]
&lt;p&gt;Note that %CMNG=1 only lists the credentials that exists, it doesn&amp;#39;t read them out. To see if the CA certificate stored in the modem is the one you wrote, you must use op_code 2, read.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Certificate Provisioning failed -111 error (Connection refused)</title><link>https://devzone.nordicsemi.com/thread/360360?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 15:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a6eb43c-7623-4ed0-9990-f602d1c3c2f4</guid><dc:creator>MehdiChelouah</dc:creator><description>&lt;p&gt;Erratum :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/15787.Capture.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>