<?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>controll of where the signing keys are stored (CONFIG_BOOT_SIGNATURE_KEY_FILE)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92584/controll-of-where-the-signing-keys-are-stored-config_boot_signature_key_file</link><description>Want to store the CONFIG_BOOT_SIGNATURE_KEY_FILE in the project space, not the ncs folders. 
 Looking for a method to define file location without using a absolute path. 
 Build env is defaulting to &amp;quot;/home/username/ncs/v2.0.0/bootloader/mcuboot/child_image</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Oct 2022 01:13:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92584/controll-of-where-the-signing-keys-are-stored-config_boot_signature_key_file" /><item><title>RE: controll of where the signing keys are stored (CONFIG_BOOT_SIGNATURE_KEY_FILE)</title><link>https://devzone.nordicsemi.com/thread/391308?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 01:13:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfb90654-b883-4c14-b6dc-35d9b77e18a2</guid><dc:creator>bdodge09</dc:creator><description>&lt;p&gt;That&amp;#39;s an awesome solution thanks Dwayne!.&amp;nbsp; I was using my build script to generate mcuboot.conf to avoid hard coding absolute paths but this is way better&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: controll of where the signing keys are stored (CONFIG_BOOT_SIGNATURE_KEY_FILE)</title><link>https://devzone.nordicsemi.com/thread/389480?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 17:42:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4877d05d-999c-4374-aeda-7e2cf2730aeb</guid><dc:creator>Dwayne Forsyth</dc:creator><description>&lt;p&gt;Ha, looks like location in CMakeList.txt is important...&lt;/p&gt;
&lt;p&gt;Moving the set command from line 15 up to line 4 fixes it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: controll of where the signing keys are stored (CONFIG_BOOT_SIGNATURE_KEY_FILE)</title><link>https://devzone.nordicsemi.com/thread/389476?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 17:06:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23c9c74e-cb69-4d30-b329-b6e4c2d8e3c0</guid><dc:creator>Dwayne Forsyth</dc:creator><description>&lt;p&gt;I must be missing something....&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;added line to&amp;nbsp;CMakeLists.txt&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(net_core)

target_sources(app PRIVATE src/main.c)

if(EXISTS &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/child_image/mcuboot.conf&amp;quot;)
    message(&amp;quot;mcuboot.conf exist&amp;quot;)
    set(mcuboot_CONF_FILE prj.conf ${CMAKE_CURRENT_LIST_DIR}/child_image/mcuboot.conf)
endif()

set(mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE \\&amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/child_image/key.pem\\&amp;quot;)

# Custom files and folders
target_sources(app PRIVATE

    src/app/ble_app.c
&amp;lt;more stuff&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I see a warning in the build&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CMake Warning at /home/dwaynef/ncs/v2.0.0/nrf/modules/mcuboot/CMakeLists.txt:281 (message):&lt;/p&gt;
&lt;p&gt;---------------------------------------------------------&lt;br /&gt; --- WARNING: Using default MCUBoot key, it should not ---&lt;br /&gt; --- be used for production. ---&lt;br /&gt; ---------------------------------------------------------&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m running ncs 2.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: controll of where the signing keys are stored (CONFIG_BOOT_SIGNATURE_KEY_FILE)</title><link>https://devzone.nordicsemi.com/thread/389304?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 06:27:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4b932f7-6a64-4da1-b2d0-25d6258422fa</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;See how my &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/mcuboot_smp_custom_key"&gt;MCUBoot Custom Key with SMP Server&lt;/a&gt; does this in CMakeLists.txt.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>