<?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>MCUBoot: how to use an individual signature key (instead of default MCUBoot key)?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103742/mcuboot-how-to-use-an-individual-signature-key-instead-of-default-mcuboot-key</link><description>We have successfully created an app with MCUBoot and can easily install updates with the &amp;quot;default MCUBoot key&amp;quot;. However, we have a problem when changing the signature key. (all CONFIG settings are in an overlay config, which is added as a Kconfig fragment</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Sep 2023 17:10:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103742/mcuboot-how-to-use-an-individual-signature-key-instead-of-default-mcuboot-key" /><item><title>RE: MCUBoot: how to use an individual signature key (instead of default MCUBoot key)?</title><link>https://devzone.nordicsemi.com/thread/446347?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2023 17:10:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb0aa5c1-42cc-4afc-97ce-2fc75f164fac</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;It is great to hear that you found the solution which is the most convenient for you.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot: how to use an individual signature key (instead of default MCUBoot key)?</title><link>https://devzone.nordicsemi.com/thread/446289?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2023 13:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bf2bb7d-9fd3-43fc-a0f0-3152924eb49e</guid><dc:creator>Marko W</dc:creator><description>&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Hallo, &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;ich arbeite mit Sven am selben Projekt und habe die Dokumentation &amp;bdquo; &lt;/span&gt;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/app_dev/bootloaders_and_dfu/bootloader_adding.html#ug-bootloader-adding-immutable-mcuboot-keys" rel="noopener noreferrer" target="_blank"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Hinzuf&amp;uuml;gen einer benutzerdefinierten Signaturschl&amp;uuml;sseldatei&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt; &amp;ldquo; getestet.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Ich habe jetzt im Projekt einen Ordner &amp;bdquo;child_image&amp;ldquo; erstellt (parallel zu &amp;bdquo;src&amp;ldquo;) und darin eine Datei &amp;bdquo;mcuboot.conf&amp;ldquo; erstellt mit (CONFIG_BOOT_SIGNATURE_KEY_FILE aus prj.conf oder Overlay entfernt):&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;CONFIG_BOOT_SIGNATURE_KEY_FILE=&amp;quot;&amp;lt;absolute Path to Project&amp;gt;/bitsz_ble_basic.pem&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ryNqvb" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Das Kompilieren funktionierte ohne Vorwarnung zum Signieren von Schl&amp;uuml;sseln. &lt;/span&gt;&lt;/span&gt;&lt;span class="jCAhz"&gt; &lt;/span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Ein Update klappt auch damit. &lt;/span&gt;&lt;/span&gt;&lt;span class="jCAhz"&gt; &lt;/span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Das Problem ist nun, dass ich einen vollst&amp;auml;ndigen Pfad angeben muss, was bei der Arbeit im Team mit SVN/GIT nicht praktikabel ist.&lt;/span&gt;&lt;/span&gt;&lt;span class="jCAhz"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="ryNqvb" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Allerdings, wenn ich benutze&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;CONFIG_BOOT_SIGNATURE_KEY_FILE=&amp;quot;bitsz_ble_basic.pem&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;es kommt zum:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;MCUBoot bootloader key file: D:/Nordic/v2.4.2/bootloader/mcuboot/bitsz_ble_basic.pem&lt;br /&gt; Using default MCUBoot key, it should not be used for production.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Es wird der Standardpfad von Zephyr/MCUBoot kombiniert mit Ihrer eigenen Datei verwendet, die Datei sollte sich jedoch im Projektordner befinden (aufgrund der Projektverwaltung &amp;uuml;ber SVN/GIT).&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;In der Zwischenzeit habe ich den Hinweis im Code von&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/blob/main/bootloader_samples/keys_and_signatures/mcuboot_smp_custom_key/CMakeLists.txt" rel="noopener noreferrer" target="_blank"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/blob/main/bootloader_samples/keys_and_signatures/mcuboot_smp_custom_key/CMakeLists.txt&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&amp;nbsp;gefunden:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;set(mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE \&amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/bitsz_ble_basic.pem\&amp;quot;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Das funktioniert super und vor allem ohne einen absoluten Pfad!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot: how to use an individual signature key (instead of default MCUBoot key)?</title><link>https://devzone.nordicsemi.com/thread/446052?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 11:46:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42222337-70b4-467c-874f-811fa2a4a4be</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Documentation provides information on how to&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/app_dev/bootloaders_and_dfu/bootloader_adding.html#ug-bootloader-adding-immutable-mcuboot-keys"&gt;add a custom signature key file&lt;/a&gt;. As mentioned in the similar section for&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/app_dev/bootloaders_and_dfu/bootloader_adding.html#adding-a-custom-signature-key-file"&gt;immutable bootloader&lt;/a&gt;&amp;nbsp;there are 2 options available when specifying path to the pem file - relative and absolute path to the key. Probably the simplest way would be to use absolute path. You should be able to properly reference the key by putting the pem key file inside child_image\mcuboot folder.and referencing it using absolute path in CONFIG_BOOT_SIGNATURE_KEY_FILE config option which should be put in mcuboot&amp;#39;s prj.conf file.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You can get more information from the following discussions -&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80094/undefined-reference-to-rsa_pub_key-when-config_boot_signature_key_file-is-defined/333163"&gt;signing firmware with custom key&lt;/a&gt;,&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/67510/ncs-recommended-mcuboot-enabled-apps-build-and-flash-methods/324792"&gt;MCUboot enabled apps and flash methods&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/99298/mcuboot-signing-images"&gt;MCUboot signing images&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot: how to use an individual signature key (instead of default MCUBoot key)?</title><link>https://devzone.nordicsemi.com/thread/445948?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2023 21:42:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e3a2929-4ac4-4662-873a-6ecbf5251ff9</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;I&amp;#39;ve got this working on a similar set up to yours (I&amp;#39;m still on v2.2.0 of NCS though).&lt;/p&gt;
&lt;p&gt;I put this in my mcuboot.conf file:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOOT_SIGNATURE_KEY_FILE&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;C:/Nordic/PUBLIC_PRIVATE_KEYS/&amp;quot;my_pem_file.pem&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;C:/Nordic/PUBLIC_PRIVATE_KEYS is obviously where I store the key files and my_pem_file.pem is the actual file&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Are you making the changes in the mcuboot.conf file, or the proj.conf file?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Mike&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>