<?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>I have unable to do DFU because of my bootloader programmed chip</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57376/i-have-unable-to-do-dfu-because-of-my-bootloader-programmed-chip</link><description>Hi 
 I have lost my private key for generating my dfu pakage using nrfutil. 
 
 I have 2K nrf Modules chips already programmed with bootloader &amp;amp; dfu enabled firmware. However, due to the corruption of the setup I have lost my key.pem file. 
 
 Can you</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Feb 2020 10:12:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57376/i-have-unable-to-do-dfu-because-of-my-bootloader-programmed-chip" /><item><title>RE: I have unable to do DFU because of my bootloader programmed chip</title><link>https://devzone.nordicsemi.com/thread/233003?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 10:12:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44854faa-d6e8-4210-82bc-c6b3d7cd52ca</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The easiest is obviously if you still have the bootloader code, then you can simply read it there. If not, you can find the location if you have the .map file and then read it from the binary. Else you will have to dig into the binary somehow. Since the encryption key does not have a simple pattern it may be difficult to find it without disassembling the binary. That is not something I am experienced with, so I am unable to give any advice.&lt;/p&gt;
&lt;p&gt;I do not see why you want to do this, though. The public key&amp;nbsp;will not in any way help you obtain the private key.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have unable to do DFU because of my bootloader programmed chip</title><link>https://devzone.nordicsemi.com/thread/232948?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 05:37:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94ad5fe1-6b87-43cd-af57-3a4af80fc37c</guid><dc:creator>Darshan Vyas</dc:creator><description>&lt;p&gt;Thank you can guide how to get public key from booloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have unable to do DFU because of my bootloader programmed chip</title><link>https://devzone.nordicsemi.com/thread/232712?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 06:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:845ddcbc-0a3e-4a79-8dd4-3cceefd5bc68</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes, it is possible to recover the public key from the bootloader. But &lt;em&gt;no&lt;/em&gt;, it will not be possible to derive the private key from the public key.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have unable to do DFU because of my bootloader programmed chip</title><link>https://devzone.nordicsemi.com/thread/232709?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 05:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63b84326-3fd4-49bb-b503-fed3ec92d994</guid><dc:creator>Darshan Vyas</dc:creator><description>&lt;p&gt;Is Possible to recover Public key from the bootloader hex file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It may help to identify the key.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have unable to do DFU because of my bootloader programmed chip</title><link>https://devzone.nordicsemi.com/thread/232676?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 19:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcec0b5f-6540-4f61-bd8d-f32e8ed40e30</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Darshan,&lt;/p&gt;
&lt;p&gt;There is no way to generate the private key from an old DFU package. The reason for using cryptographic signing (ECDSA in this case) is precisely to ensure that only the holder of the private key is able to generate valid upgrade images. It is not possible to generate valid DFU packages if the private key is lost.&lt;/p&gt;
&lt;p&gt;There are only two possibilities in&amp;nbsp;this situation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Either live with the fact that it is impossible to update the devices further,&lt;/li&gt;
&lt;li&gt;or find a way to re-program the bootloader via SWD (which is usually not&amp;nbsp;a realistic option for end products in the field).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>