<?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>Having trouble trying to convert cbor object to CSR while trying to provision a device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113202/having-trouble-trying-to-convert-cbor-object-to-csr-while-trying-to-provision-a-device</link><description>HI all, 
 So after realizing that I needed to Just-In-Time provision my Thingy 91 in order to add the device to my nRF Cloud account, I began the process described in this post in the nRF documentation: Generating credentials using AT commands I had been</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jul 2024 12:34:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113202/having-trouble-trying-to-convert-cbor-object-to-csr-while-trying-to-provision-a-device" /><item><title>RE: Having trouble trying to convert cbor object to CSR while trying to provision a device</title><link>https://devzone.nordicsemi.com/thread/496212?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 12:34:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52daaab1-e06e-4494-992b-2080e285390c</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Hi Priyanka!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you so much for your help! That seemed to have fixed the issue with my device. Initially I was trying to connect with the asset_tracker_v2_nbiotlegacy application but it seems that NB-IoT coverage isn&amp;#39;t particularly strong in my area but I was able to connect my device to nRF Cloud over LTE!&lt;/p&gt;
&lt;p&gt;This ticket can be closed, thanks :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble trying to convert cbor object to CSR while trying to provision a device</title><link>https://devzone.nordicsemi.com/thread/496133?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 07:23:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21bbbe83-e065-4746-86e0-31535af48c5b</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have heard from our team. Your&amp;nbsp;device nrf-352656100884728 does not exist in nrf cloud, so that means it has never successfully connected to perform JITP. This is why you are not able to associate your device.&lt;br /&gt; &lt;br /&gt;So either the device has never been able to establish a network connection to successfully connect to the cloud or the credentials on the device are invalid/not formatted correctly.&lt;/p&gt;
&lt;p&gt;According to your device, you can onboard the device as follows:&lt;/p&gt;
&lt;p&gt;1. preconnect provisioning&lt;/p&gt;
&lt;p&gt;2. JITP&lt;br /&gt;Before continuing further, please choose any one option. &lt;br /&gt;&lt;br /&gt;We&amp;nbsp;recommend that you first attempt to use JITP to avoid&amp;nbsp;your script/computer setup issues.&lt;br /&gt; &lt;br /&gt;This process is summarized as follows:&lt;/p&gt;
&lt;p&gt;- In Serial Terminal, select your device.&lt;br /&gt;- Send AT+CFUN=4&lt;br /&gt;- Confirm setting with AT+CFUN?&lt;br /&gt;- In Cellular Monitor, select your device.&lt;br /&gt;- Navigate to Certificate Manager.&lt;br /&gt;- Click the Load from JSON button.&lt;br /&gt;- Select the JSON file downloaded from nRF Cloud.&lt;br /&gt;- Click Update Certificates.&lt;br /&gt;- Confirm in Cellular Monitor log that all three credentials were deleted and updated.&lt;br /&gt;- You can also confirm in Serial Terminal that the data was sent.&lt;br /&gt;&lt;br /&gt;Here are some screenshots of the process:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1722324146326v8.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/certupdate.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After your credentials are updated, you can cycle power on the device.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;When it first attempts to connect to nRF Cloud, you will see:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;[00:01:24.234,832] &amp;lt;err&amp;gt; nrf_cloud_transport: MQTT input error: -128&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[00:01:24.234,924] &amp;lt;err&amp;gt; nrf_cloud_transport: Error disconnecting from cloud: -128&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[00:01:24.235,015] &amp;lt;inf&amp;gt; app_event_manager: CLOUD_EVT_DISCONNECTED&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;This is a normal part of the JITP process.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Once you see this, you can proceed to nRF Cloud and add the device to your account.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;The device should connect successfully on the next retry.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble trying to convert cbor object to CSR while trying to provision a device</title><link>https://devzone.nordicsemi.com/thread/495619?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 12:06:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87b3ed32-d0c1-4926-8bc1-da3bbf86b960</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Hi Priyanka!&lt;/p&gt;
[quote userid="107729" url="~/f/nordic-q-a/113202/having-trouble-trying-to-convert-cbor-object-to-csr-while-trying-to-provision-a-device/495526"]You don&amp;#39;t&amp;nbsp;need to use curl to do that, and even if you did so, it would very likely fail with the same error 40412.[/quote]
&lt;p&gt;Just to clarify but the reason the Associate Device Endpoint didn&amp;#39;t work at least in my case would be attributed to the fact that the device technically is already &amp;quot;provisioned&amp;quot; because of it&amp;#39;s factory settings. If I were trying to add a non-nrf device to nRF Cloud then would this method have worked?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble trying to convert cbor object to CSR while trying to provision a device</title><link>https://devzone.nordicsemi.com/thread/495599?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 10:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1a9e607-e978-460d-8f59-9efd69cd5a84</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Thank you very much. We are working on this.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble trying to convert cbor object to CSR while trying to provision a device</title><link>https://devzone.nordicsemi.com/thread/495595?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 10:30:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d556b43-d818-4e5a-9e12-65fc60e3e44b</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Hi Priyanka!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The IMEI = nrf-352656100884728&lt;/p&gt;
&lt;p&gt;The PIN = 315202&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you again for the help!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble trying to convert cbor object to CSR while trying to provision a device</title><link>https://devzone.nordicsemi.com/thread/495526?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 04:33:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27c86e31-bccf-4e1a-88d5-3409998f5ba2</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you share&amp;nbsp;the IMEI and PIN so we can investigate further from our end?&amp;nbsp;&lt;/p&gt;
[quote user="witch_mountain"]&lt;p&gt;&lt;span&gt;Specifically the section about &amp;quot;Using the LTE Link Monitor Certificate manager&amp;quot;. I couldn&amp;#39;t find where this LTE Link Monitor application was so I used the Cellular Monitor from nRF Connect for Desktop and used the Certificate Manager there to add my JSON file and update my certificate. This however did not work when I went back to add a new device to nRF Cloud as I received the same 40412 error.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then I went back to:&amp;nbsp;&lt;a href="https://api.nrfcloud.com/v1/?__hstc=8439722.980b77e91bd91fe84f06d28036cf5d85.1697707933881.1721823549503.1721881706855.219&amp;amp;__hssc=8439722.8.1721881706855&amp;amp;__hsfp=3708446789#tag/IP-Devices/operation/CreateDeviceCertificate"&gt;https://api.nrfcloud.com/v1/#tag/IP-Devices/operation/CreateDeviceCertificate&lt;/a&gt;&amp;nbsp;just to fully read what is provided in this section and if there was anything else I could consider trying. That&amp;#39;s where I came upon that one of the disadvantages of this endpoint was that I had to &amp;quot;You will have to explicitly associate a JITP device with your account&amp;quot;. There was a hyperlink attached to &amp;quot;associate&amp;quot; that lead me to:&amp;nbsp;&lt;a href="https://api.nrfcloud.com/v1?__hstc=8439722.980b77e91bd91fe84f06d28036cf5d85.1697707933881.1721823549503.1721881706855.219&amp;amp;__hssc=8439722.8.1721881706855&amp;amp;__hsfp=3708446789#tag/IP-Devices/operation/AssociateDevice"&gt;https://api.nrfcloud.com/v1#tag/IP-Devices/operation/AssociateDevice&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;span&gt;Yes,&amp;nbsp;it&amp;#39;s true that the documentation still mentions LTE Link Monitor&amp;nbsp;and we are aware of this. Our tech writer is working on the updates to that page.&amp;nbsp;&lt;/span&gt;When you got the 40412 error, that was as a result of trying to associate&amp;nbsp;your device.&amp;nbsp;You don&amp;#39;t&amp;nbsp;need to use curl to do that, and even if you did so, it would very likely fail with the same error 40412.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble trying to convert cbor object to CSR while trying to provision a device</title><link>https://devzone.nordicsemi.com/thread/495450?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 13:55:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:079857f1-b4ed-4d06-8d5c-9340a2866dcc</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Thanks so much Priyanka, I&amp;#39;m looking forward to hear their input and advice!&lt;/p&gt;
&lt;p&gt;I also wanted to add that I tried 2 other methods as of recently to try adding my device/generating certificates that I wanted to share so the Cloud team has a better understanding of what methods I&amp;#39;ve gone through.&lt;/p&gt;
&lt;p&gt;I first tried using the Create JITP Certificate option found on nRF Cloud when adding in a new device. As shown here:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1721828123376v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;After inputting my devices IMEI and PIN and downloaded the JSON file with my certificate I followed the guide from:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Security/Credentials.html#using-the-lte-link-monitor-certificate-manager"&gt;https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Security/Credentials.html#using-the-lte-link-monitor-certificate-manager&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Specifically the section about &amp;quot;Using the LTE Link Monitor Certificate manager&amp;quot;. I couldn&amp;#39;t find where this LTE Link Monitor application was so I used the Cellular Monitor from nRF Connect for Desktop and used the Certificate Manager there to add my JSON file and update my certificate. This however did not work when I went back to add a new device to nRF Cloud as I received the same 40412 error.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then I went back to:&amp;nbsp;&lt;a href="https://api.nrfcloud.com/v1/#tag/IP-Devices/operation/CreateDeviceCertificate"&gt;https://api.nrfcloud.com/v1/#tag/IP-Devices/operation/CreateDeviceCertificate&lt;/a&gt;&amp;nbsp;just to fully read what is provided in this section and if there was anything else I could consider trying. That&amp;#39;s where I came upon that one of the disadvantages of this endpoint was that I had to &amp;quot;You will have to explicitly associate a JITP device with your account&amp;quot;. There was a hyperlink attached to &amp;quot;associate&amp;quot; that lead me to:&amp;nbsp;&lt;a href="https://api.nrfcloud.com/v1#tag/IP-Devices/operation/AssociateDevice"&gt;https://api.nrfcloud.com/v1#tag/IP-Devices/operation/AssociateDevice&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Following this endpoint I tried to use the cmd&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;curl -X PUT $API_HOST/v1/association/$DEVICE_ID -d &amp;quot;$DEVICE_OWNERSHIP_CODE&amp;quot; -H &amp;quot;Authorization: Bearer $API_KEY&amp;quot; -H &amp;quot;Content-Type: text/plain&amp;quot;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When I inputted this into my cmd prompt, where I added in my device id, PIN, api key I received this error message:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - The revocation function was unable to check revocation for the certificate.&lt;/pre&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I would like to also add that I&amp;#39;m not fully sure if my $API_HOST was correct as I used: &lt;a id="" href="https://api.nrfcloud.com/v1/openapi.json"&gt;https://api.nrfcloud.com/v1/openapi.json&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m at the moment trying to fix this and if there are any suggestions I&amp;#39;d love to hear them! Again, thank you for the help as you look into my problem and I just wanted to provide some more information/update my various attempts at finding a solution!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble trying to convert cbor object to CSR while trying to provision a device</title><link>https://devzone.nordicsemi.com/thread/495329?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 06:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7543d568-76f1-43bc-bd4a-edf3508b1bf4</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Thank you for the detailed description. I have conveyed this to the Cloud team and will get back to you soon.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble trying to convert cbor object to CSR while trying to provision a device</title><link>https://devzone.nordicsemi.com/thread/495196?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 12:13:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbffe026-28bb-4cb1-ae01-18e791eaadfa</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Hi Priyanka!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This issue all began when I tried to add my device like you described on nRF Cloud with the IMEI and PIN from the sticker on the device. I received this message:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1721736136473v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And when I checked to see what&amp;nbsp;nRF Code 40412 meant from &lt;a id="" href="https://api.nrfcloud.com/v1/"&gt;https://api.nrfcloud.com/v1/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I had the options to resolve this by:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Checking to make sure my entered values where correct-- they were&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Check the LED status to see if it was provisioned-- I had flashed the required firmware for the nRF 91 SiP and the nRF52 SoC and had the asset tracker v2 application flashed so my Thingy 91 device was glowing green when turned on&lt;/li&gt;
&lt;li&gt;(Re-)flash the latest modem firmware-- Reflashed the latest modem firmware off the Nordic Thingy 91 page and seems to be in working order&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Move to a location with a better LTE connection. -- Had done this as well&lt;/li&gt;
&lt;li&gt;Flash new device certificates obtained from the CreateDeviceCertificate endpoint.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;My last option from that list was to flash the new device certificate where I was taken to this link:&amp;nbsp;&lt;a href="https://api.nrfcloud.com/v1/#tag/IP-Devices/operation/CreateDeviceCertificate"&gt;https://api.nrfcloud.com/v1/#tag/IP-Devices/operation/CreateDeviceCertificate&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But since this endpoint was deprecated I followed it to the Onboard Device endpoint:&amp;nbsp;&lt;a href="https://api.nrfcloud.com/v1/#tag/IP-Devices/operation/OnboardDevice"&gt;https://api.nrfcloud.com/v1/#tag/IP-Devices/operation/OnboardDevice&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Where I tried to get more information from the Onboarding page off the nRF Cloud Documentation&amp;nbsp;&lt;a id="" href="https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Associations/Provisioning.html"&gt;https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Associations/Provisioning.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And this is where I found the Just-In-Time Provisioning and realized that my error message specifically mentioned that. Then from that page I was taken to:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Security/Credentials.html"&gt;https://docs.nordicsemi.com/bundle/nrf-cloud/page/Devices/Security/Credentials.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and learned how to&amp;nbsp;Generating credentials using AT commands which where I am at now.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am new to using nordic devices and nRF Cloud so if this was not the list of steps I was supposed to take please let me know. I&amp;#39;m just following through the researching through the documentation provided by Nordic Semiconductors on their products.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble trying to convert cbor object to CSR while trying to provision a device</title><link>https://devzone.nordicsemi.com/thread/495140?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 07:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a691e191-a3a3-44ec-b095-c306fa91d71c</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is what I hear from the team:&lt;/p&gt;
&lt;p&gt;If you are truly wanting to &amp;quot;Just In Time Provision&amp;quot; (JITP), the &lt;em&gt;modem_credentials_parser.py&lt;/em&gt; is not used at all. JITP means you want to use the certificates written by the factory into the modem in their Thingy:91, then use the Add LTE Device form on nRF Cloud to add it to their account.&lt;br /&gt; &lt;br /&gt;All you need are the IMEI and PIN from the sticker on the Thingy:91 PCB. Then in nRF Cloud, with the Thingy:91 turned on, go to Device Management -&amp;gt; Devices -&amp;gt; Add Device -&amp;gt; LTE Device -&amp;gt; Enter the device ID as nrf-&amp;lt;IMEI from sticker&amp;gt; and the PIN from the sticker; subtype can be left empty. Then tap Add Device.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble trying to convert cbor object to CSR while trying to provision a device</title><link>https://devzone.nordicsemi.com/thread/495065?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2024 15:02:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26b118b3-4ce6-430f-8c02-a20028fe2495</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Hi Priyanka!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m accessing this through a work network and I&amp;#39;ve been in contact with my IT department and I was able to work through some of my issues and am now in this new position:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;After being able to configure pip to the CA certificate associated with my place of work I was able to create a virtual environment and update pip to the latest version without throwing an SSL error. I&amp;#39;ve added this new environment to my PATH and then tried to install my requirements.txt file in order to use the python script associated with my initial task ;-;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;When I enter&amp;nbsp;&lt;/span&gt;&lt;code&gt;pip install -r requirements.txt&lt;/code&gt;&lt;span&gt;&amp;nbsp;I get the following error:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Looking in indexes: /*WORK LINK*/
Collecting auto_mix_prep&amp;gt;=0.2.0 (from -r requirements.txt (line 1))
Using cached /*WORK LINK*/ s ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting cbor2&amp;gt;=5.4.2.post1 (from -r requirements.txt (line 2))
Using cached /*WORK LINK*/ (23 kB)
Collecting colorama&amp;gt;=0.4.4 (from -r requirements.txt (line 3))
Using cached /*WORK LINK*/ (25 kB)
Collecting cryptography&amp;gt;=36.0.1 (from -r requirements.txt (line 4))
Using cached /*WORK LINK*/ (686 kB)
Installing build dependencies ... error
error: subprocess-exited-with-error

&amp;#215; pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─&amp;gt; [142 lines of output]
Looking in indexes: /*WORK LINK*/
Collecting maturin&amp;lt;2,&amp;gt;=1
Using cached /*WORK LINK*/ (188 kB)
Installing build dependencies: started
Installing build dependencies: finished with status &amp;#39;done&amp;#39;
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status &amp;#39;done&amp;#39;
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status &amp;#39;done&amp;#39;
Collecting cffi&amp;gt;=1.12
Using cached /*WORK LINK*/ (512 kB)
Installing build dependencies: started
Installing build dependencies: finished with status &amp;#39;done&amp;#39;
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status &amp;#39;done&amp;#39;
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status &amp;#39;done&amp;#39;
Collecting setuptools
Using cached https:/*WORK LINK*/ (2.3 MB)
Collecting pycparser (from cffi&amp;gt;=1.12)
Using cached /*WORK LINK*/ (117 kB)
Building wheels for collected packages: maturin, cffi
Building wheel for maturin (pyproject.toml): started
Building wheel for maturin (pyproject.toml): finished with status &amp;#39;error&amp;#39;
error: subprocess-exited-with-error

Building wheel for maturin (pyproject.toml) did not run successfully.
exit code: 1

[42 lines of output]
C:\Users\rbx5032\AppData\Local\Temp\pip-build-env-p7nrk207\overlay\lib\python3.11\site-packages\setuptools\config\_apply_pyprojecttoml.py:79: SetuptoolsWarning: `install_requires` overwritten in `pyproject.toml` (dependencies)
corresp(dist, value, root_dir)
running bdist_wheel
running build
running build_py
creating build
creating build\lib.mingw_x86_64-cpython-311
creating build\lib.mingw_x86_64-cpython-311\maturin
copying maturin\__init__.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\maturin
copying maturin\__main__.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\maturin
running egg_info
creating maturin.egg-info
writing maturin.egg-info\PKG-INFO
writing dependency_links to maturin.egg-info\dependency_links.txt
writing requirements to maturin.egg-info\requires.txt
writing top-level names to maturin.egg-info\top_level.txt
writing manifest file &amp;#39;maturin.egg-info\SOURCES.txt&amp;#39;
reading manifest file &amp;#39;maturin.egg-info\SOURCES.txt&amp;#39;
reading manifest template &amp;#39;MANIFEST.in&amp;#39;
warning: no files found matching &amp;#39;*.json&amp;#39; under directory &amp;#39;src\python_interpreter&amp;#39;
adding license file &amp;#39;license-apache&amp;#39;
adding license file &amp;#39;license-mit&amp;#39;
writing manifest file &amp;#39;maturin.egg-info\SOURCES.txt&amp;#39;
running build_ext
running build_rust
Updating crates.io index
warning: spurious network error (3 tries remaining): [35] SSL connect error (schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - The revocation function was unable to check revocation for the certificate.)
warning: spurious network error (2 tries remaining): [35] SSL connect error (schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - The revocation function was unable to check revocation for the certificate.)
warning: spurious network error (1 tries remaining): [35] SSL connect error (schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - The revocation function was unable to check revocation for the certificate.)
error: failed to get `anyhow` as a dependency of package `maturin v1.7.0 (C:\Users\rbx5032\AppData\Local\Temp\pip-install-8tl9iopx\maturin_c7d66aa104f340d6a8375f29f177aa7a)`

Caused by:
download of config.json failed

Caused by:
failed to download from `https://index.crates.io/config.json`

Caused by:
[35] SSL connect error (schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - The revocation function was unable to check revocation for the certificate.)
error: `cargo metadata --manifest-path Cargo.toml --format-version 1 --locked` failed with code 101
-- Output captured from stdout:

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for maturin
Building wheel for cffi (pyproject.toml): started
Building wheel for cffi (pyproject.toml): finished with status &amp;#39;error&amp;#39;
error: subprocess-exited-with-error

Building wheel for cffi (pyproject.toml) did not run successfully.
exit code: 1

[52 lines of output]
_configtest.c:2:2: error: #error &amp;quot;not MSVC&amp;quot;
2 | #error &amp;quot;not MSVC&amp;quot;
| ^~~~~
Note: will not use &amp;#39;__thread&amp;#39; in the C code
***** The above error message can be safely ignored.

running bdist_wheel
running build
running build_py
creating build
creating build\lib.mingw_x86_64-cpython-311
creating build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\api.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\backend_ctypes.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\cffi_opcode.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\commontypes.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\cparser.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\error.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\ffiplatform.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\lock.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\model.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\pkgconfig.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\recompiler.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\setuptools_ext.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\vengine_cpy.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\vengine_gen.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\verifier.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\_imp_emulation.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\_shimmed_dist_utils.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\__init__.py -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\_cffi_include.h -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\parse_c_type.h -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\_embedding.h -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
copying src\cffi\_cffi_errors.h -&amp;gt; build\lib.mingw_x86_64-cpython-311\cffi
running build_ext
building &amp;#39;_cffi_backend&amp;#39; extension
creating build\temp.mingw_x86_64-cpython-311
creating build\temp.mingw_x86_64-cpython-311\src
creating build\temp.mingw_x86_64-cpython-311\src\c
gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -DFFI_BUILDING=1 -IC:/msys64/mingw64/bin/../include -IC:\msys64\mingw64/include/python3.11 -c src/c/_cffi_backend.c -o build\temp.mingw_x86_64-cpython-311\src\c\_cffi_backend.o
src/c/_cffi_backend.c: In function &amp;#39;b_do_dlopen&amp;#39;:
src/c/_cffi_backend.c:4521:40: error: passing argument 1 of &amp;#39;PyUnicode_AsWideChar&amp;#39; from incompatible pointer type [-Wincompatible-pointer-types]
4521 | sz1 = PyUnicode_AsWideChar((PyUnicodeObject *)filename_unicode,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| PyUnicodeObject *
In file included from C:\msys64\mingw64/include/python3.11/Python.h:51,
from src/c/_cffi_backend.c:2:
C:\msys64\mingw64/include/python3.11/unicodeobject.h:299:15: note: expected &amp;#39;PyObject *&amp;#39; {aka &amp;#39;struct _object *&amp;#39;} but argument is of type &amp;#39;PyUnicodeObject *&amp;#39;
299 | PyObject *unicode, /* Unicode object */
| ~~~~~~~~~~^~~~~~~
error: command &amp;#39;C:\\msys64\\mingw64\\bin\\gcc.EXE&amp;#39; failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cffi
Failed to build maturin cffi
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (maturin, cffi)
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

&amp;#215; pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─&amp;gt; See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I was wondering if there was something else I&amp;#39;m missing when I try to install the requirements for the scripts needed.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble trying to convert cbor object to CSR while trying to provision a device</title><link>https://devzone.nordicsemi.com/thread/495043?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2024 13:49:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d9d4bb4-78b1-4e64-a730-43e70ddc64ee</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The issue may arise if you are using a firewall. Maybe you could try using an unrestricted firewall and see if this helps.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble trying to convert cbor object to CSR while trying to provision a device</title><link>https://devzone.nordicsemi.com/thread/495034?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2024 13:22:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ecb9be7-2088-47aa-a98f-89f9c2602be6</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have inquired internally regarding the issue and will get back to you soon.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>