<?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>putting the right certificates in certificates.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46308/putting-the-right-certificates-in-certificates</link><description>Hi All, 
 I&amp;#39;m trying to understand certificate goes where from AWS-IOT to certificate.h. 
 when setting a new device, I have these 4 certificates: 
 
 also the ROOT CA contains multiple certificates as well: 
 
 
 
 
 
 I&amp;#39;m not sure which one goes where</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Apr 2019 17:16:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46308/putting-the-right-certificates-in-certificates" /><item><title>RE: putting the right certificates in certificates.</title><link>https://devzone.nordicsemi.com/thread/182664?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 17:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4e83259-37d2-4fca-9bef-7fa68c3ffa5c</guid><dc:creator>DevinCallahan</dc:creator><description>&lt;p&gt;Any of the CA certificates&amp;nbsp;&lt;em&gt;should&lt;/em&gt; work in the &amp;quot;NRF_CLOUD_CA_CERTIFICATE&amp;quot; in certificates.h.&amp;nbsp; The only constraint is the signature algorithms the TLS library on the device supports.&amp;nbsp; I would like to imagine both RSA keys and ECC keys are supported though.&amp;nbsp; If you care about space the ECC certs are much smaller (that&amp;#39;s just an inherent benefit of ECC over RSA).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: putting the right certificates in certificates.</title><link>https://devzone.nordicsemi.com/thread/182555?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 09:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:980e3a18-afbd-45c6-b681-29c150e42aa2</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;The private key is an RSA key so the first RSA 2048 is what we use at the moment but that probably is a question for Nordic to answer. Of the two RSA CAs, the smaller 2048 is probably the correct one as the other will require more space to store.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: putting the right certificates in certificates.</title><link>https://devzone.nordicsemi.com/thread/182551?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 09:22:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73bcbacc-6f7c-4b08-bc6d-71846b90ffa0</guid><dc:creator>MosheSmartAmr</dc:creator><description>&lt;p&gt;Thanks MJD093,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There are several kinds of ROOT CA certificates (see second image), which one should I choose?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: putting the right certificates in certificates.</title><link>https://devzone.nordicsemi.com/thread/182540?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 09:08:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b12b9a17-dbf3-47ea-ac25-aa61088ecad4</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;I am currently at this stage as well but I believe that you need the rootCA, private key and the public certificate&lt;/p&gt;
&lt;p&gt;In certificates.h:&lt;/p&gt;
&lt;p&gt;Private key first (private.key)&lt;/p&gt;
&lt;p&gt;Public Cert second (cert.pem)&lt;/p&gt;
&lt;p&gt;rootCA third (root-CA.crt)&lt;/p&gt;
&lt;p&gt;I figured these are the three files used from the wording of the .h file and that MQTT processes like Mosquitto use these three files to successfully publish to our AWS IoT instance.&lt;/p&gt;
&lt;p&gt;See /path/to/ncs/nRF5_SDK_15.2.0_9412b96/external/mbedtls/library/certs.c to see an example of how Nordic set these certificates up for a different process&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>