<?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>Build with MCUBOOT and only provide public key</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117995/build-with-mcuboot-and-only-provide-public-key</link><description>Hi 
 We have a third party that develops some of our products, and this third party does not release their source code. However, we would like to sign our binaries with a private key but that would require that MCUBOOT has the corresponding public key</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Jan 2025 15:08:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117995/build-with-mcuboot-and-only-provide-public-key" /><item><title>RE: Build with MCUBOOT and only provide public key</title><link>https://devzone.nordicsemi.com/thread/518192?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2025 15:08:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:078bcf98-d730-4e4e-b708-70ca7e872036</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/keys_and_signatures/mcuboot_manual_sign#:~:text=Initially%20build%20the%20sample%20to%20generate%20a%20build%20folder.%20The%20private%20key%20in%20%22child_image/mcuboot/tmp_priv.pem%22%20is%20not%20important%20here.%20Copy%20the%20test_pub.c%20into%20mcuboot.%20This%20will%20make%20it%20use%20your%20key%20instead%20of%20the%20one%20generated%20from%20child_image/mcuboot/tmp_priv.pem%3A"&gt;take a look at this sample,&lt;/a&gt; which showcases manual signing. Kindly use this repository only for reference, as it is outdated and not maintained according to the current NCS version.&lt;/p&gt;
&lt;p&gt;I hope this will serve your purpose.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build with MCUBOOT and only provide public key</title><link>https://devzone.nordicsemi.com/thread/518184?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2025 14:46:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ffc0214-8103-4e51-b8b8-aff5bf342e6d</guid><dc:creator>robertp</dc:creator><description>&lt;p&gt;Hi, thanks for the reply.&lt;/p&gt;
&lt;p&gt;Do you know how to embed the public key in the bootloader binary during or after build? I can&amp;#39;t find any documentation about that.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build with MCUBOOT and only provide public key</title><link>https://devzone.nordicsemi.com/thread/518181?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2025 14:37:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a714494-4ff2-4336-8601-9281a8064da8</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I believe this is feasible. You can share the public key while keeping the private key secure with you. MCUBoot requires the public key to verify the signed application during the boot process. The public key is embedded into the bootloader binary during its build.&lt;/p&gt;
&lt;p&gt;The configuration parameter &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_BOOT_SIGNATURE_KEY_FILE"&gt;CONFIG_BOOT_SIGNATURE_KEY_FILE&lt;/a&gt;&amp;nbsp;specifies the file containing the private key used for signing the binaries. This private key is not needed during the application build process but is required during the MCUBoot build process.&lt;/p&gt;
&lt;p&gt;Ensure the private key remains in your possession and use it to sign the final application binary. Third parties can provide you with unsigned application binaries, which you can then sign before distribution.&lt;/p&gt;
&lt;p&gt;See the section &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/mcuboot_nsib/bootloader_signature_keys.html"&gt;signature keys &lt;/a&gt;for generating keys using different tools.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>