<?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>How to convert crt file to c header file?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96924/how-to-convert-crt-file-to-c-header-file</link><description>Hello, 
 in DevAcademi - lessone 4 excercise 2, need to convert crt file to c header file, once running the command &amp;quot;python crt_to_header.py&amp;quot; 
 i&amp;#39;m getting error &amp;quot;FileNotFoundError: [Errno 2] No such file or directory: &amp;#39;server_certificate.crt&amp;#39;&amp;quot; 
 what</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Feb 2023 13:29:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96924/how-to-convert-crt-file-to-c-header-file" /><item><title>RE: How to convert crt file to c header file?</title><link>https://devzone.nordicsemi.com/thread/411378?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2023 13:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1de6031-ecda-405e-aaf2-bad9b0b1b9f6</guid><dc:creator>Ronensol</dc:creator><description>&lt;p&gt;i followed the instructions but for some reason the python script can&amp;#39;t open .crt file for read,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;so i took it from repo of the course.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to convert crt file to c header file?</title><link>https://devzone.nordicsemi.com/thread/411297?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2023 10:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38482919-1c8e-4179-8fa9-1270fc9e4cde</guid><dc:creator>Ali Aljaani</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;You need to download the the certificate from here&amp;nbsp;&lt;a id="" href="https://test.mosquitto.org/"&gt;https://test.mosquitto.org/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1677059650176v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Store it in the i&lt;span&gt;n the exercise root directory of the application, and&amp;nbsp;make sure to name it:&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;code&gt;server_certificate.crt .&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The Python script expects this file to be placed and named as such.&lt;/p&gt;
&lt;p&gt;This is explaied in step 3 of the exercise.&amp;nbsp;&lt;a id="" href="https://academy.nordicsemi.com/topic/lesson-4-exercise-2/"&gt;https://academy.nordicsemi.com/topic/lesson-4-exercise-2/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have any doubt, the solution is also avaiable in the repo of the course &lt;a id="" href="https://github.com/NordicDeveloperAcademy/Cellular-IoT-Fundamentals/tree/master/lesson4/cellfund_less4_exer2_solution"&gt;https://github.com/NordicDeveloperAcademy/Cellular-IoT-Fundamentals/tree/master/lesson4/cellfund_less4_exer2_solution&lt;/a&gt; .&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>