<?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 verify if certificate and private key are matched?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97541/how-to-verify-if-certificate-and-private-key-are-matched</link><description>Hi, 
 Is there any AT command on the modem that verify the stored certificate and private key are matched? 
 for example, if we program certificate device #2 into device #1, mismatch of pair key then how can we check it during program process. 
 Best</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Mar 2023 15:32:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97541/how-to-verify-if-certificate-and-private-key-are-matched" /><item><title>RE: How to verify if certificate and private key are matched?</title><link>https://devzone.nordicsemi.com/thread/417486?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 15:32:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:639b4bb9-7a03-4c4a-855b-9a98aae7a0aa</guid><dc:creator>SaranSiriwa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the update.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Saran&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to verify if certificate and private key are matched?</title><link>https://devzone.nordicsemi.com/thread/417380?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 11:18:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9affc781-0229-419d-a29c-f27409f5d7bd</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;At the moment there are no AT commands that provide that functionality, but is a good feature request that I will forward to our modem team.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The best way at the moment to verify the key is to compare against the device ID (e.g. IMEI).&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to verify if certificate and private key are matched?</title><link>https://devzone.nordicsemi.com/thread/417205?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 17:00:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6698cc64-2ce7-435e-8d42-b58c7b635a04</guid><dc:creator>SaranSiriwa</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;yvind,&lt;/p&gt;
&lt;p&gt;Do you have any updates on this?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Saran&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to verify if certificate and private key are matched?</title><link>https://devzone.nordicsemi.com/thread/416620?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 15:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85b549e1-984c-4970-af3a-f3308195f6c0</guid><dc:creator>SaranSiriwa</dc:creator><description>&lt;p&gt;The system uses TRNG to generate public&amp;amp;private keys on the device itself and expose only the public key to the manufacturing PC, after the public key enrolls into the Could system successfully then write the public key back to the device.&lt;/p&gt;
&lt;p&gt;In this procedure, I would like to know if there are any AT commands to check that the public&amp;amp;private keys are matched.&lt;/p&gt;
&lt;p&gt;Or if you have another procedure, please let me know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to verify if certificate and private key are matched?</title><link>https://devzone.nordicsemi.com/thread/416428?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 07:29:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be2e7101-e5e4-45ad-9adf-f916e9f1284b</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Saran, do you read the IMEI of the devices during production? Have you looked into checking key towards a list of IMEI and credentials?&amp;nbsp;&lt;/p&gt;
[quote user="SaranSiriwa"]The system will generate a pair key using TRNG and then expose only pub key to enroll with the cloud system then load it back into the modem.[/quote]
&lt;p&gt;How does the system generate these keys? Are these generated on the device itself or on a computer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to verify if certificate and private key are matched?</title><link>https://devzone.nordicsemi.com/thread/416367?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2023 18:38:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b958e6e-e328-48d4-be17-04862a54d8ef</guid><dc:creator>SaranSiriwa</dc:creator><description>&lt;p&gt;Thank you for letting me know, I will waiting for your answer on Monday.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Saran&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to verify if certificate and private key are matched?</title><link>https://devzone.nordicsemi.com/thread/416136?ContentTypeID=1</link><pubDate>Sat, 18 Mar 2023 07:12:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a241007-5925-4525-8956-1f8ecfcb0d44</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Saran, my apologies for the late reply. This week I have been at Embedded World and have had no time to follow up. Will get back to you on Monday.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Sorry for the inconvenience.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to verify if certificate and private key are matched?</title><link>https://devzone.nordicsemi.com/thread/415043?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 03:10:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3424c9e1-71ef-4002-b585-080cd9232074</guid><dc:creator>SaranSiriwa</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;Do you have any updates on this?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Saran&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to verify if certificate and private key are matched?</title><link>https://devzone.nordicsemi.com/thread/414547?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 08:57:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:139f787c-6030-4a23-972c-2b0d74ed4c0e</guid><dc:creator>SaranSiriwa</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Currently, we use modem FW version 1.3.3.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What I mean is we already checked the HASH SHA-256 already which is valid (write/read are equal) b&lt;/span&gt;&lt;span&gt;ut it is swapped with the device.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To give you some background,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The system will generate a pair key using TRNG and then expose only pub key to enroll with the cloud system then load it back into the modem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In this case,&amp;nbsp;we can accidentally load the certificate for&amp;nbsp;device Number 123 onto device 456 then the certificate is a &amp;ldquo;valid&amp;rdquo; certificate but will not match the key on the 456 unit.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So I would want to know if there is a way or AT command available to guard against this case.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Saran&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to verify if certificate and private key are matched?</title><link>https://devzone.nordicsemi.com/thread/414544?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 08:45:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60a004bd-2b9f-4b72-a6e0-306b6eaf72d9</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What modem FW are you running on your devices? The &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/security/cmng_set.html"&gt;Credential storage management %CMNG&lt;/a&gt;&amp;nbsp;&lt;span&gt;is used for credential storage management. The command writes, reads, deletes, and checks the existence of keys and certificates. From modem FW&amp;nbsp;v1.3.x≥2 it is possible to read the&amp;nbsp;SHA-256 digest of the entity (&lt;a title="Distinguished Encoding Rules" href="https://infocenter.nordicsemi.com/topic/ref_at_commands/dita_common/glossary/glossary.html#der"&gt;&lt;dfn&gt;DER&lt;/dfn&gt;&lt;/a&gt;, PEM) as stored in the modem filesystem.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>