Skip to content

Commit 3dc381f

Browse files
committed
Move private.pem back to separate directories
1 parent dd20ee3 commit 3dc381f

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ function(add_subdirectory_exclude_platforms NAME)
4747
add_subdirectory(${NAME})
4848
endfunction()
4949

50-
# Set signing file for entire project
51-
set_property(GLOBAL PROPERTY PICOTOOL_SIGFILE "${CMAKE_CURRENT_LIST_DIR}/sample_keys/private.pem")
52-
5350
# Add blink example
5451
add_subdirectory_exclude_platforms(blink)
5552
add_subdirectory_exclude_platforms(blink_simple)

bootloaders/encrypted/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ endfunction()
3939
add_linker_script(enc_bootloader "0x20078000" "32k")
4040

4141
# sign, hash, and clear SRAM
42-
pico_sign_binary(enc_bootloader)
42+
pico_sign_binary(enc_bootloader ${CMAKE_CURRENT_LIST_DIR}/private.pem)
4343
pico_hash_binary(enc_bootloader)
4444
pico_load_map_clear_sram(enc_bootloader)
4545

@@ -76,7 +76,7 @@ add_linker_script(hello_serial_enc "0x20000000" "448k")
7676
pico_set_otp_key_output_file(hello_serial_enc ${CMAKE_CURRENT_BINARY_DIR}/otp.json)
7777

7878
# sign, hash, and encrypt
79-
pico_sign_binary(hello_serial_enc)
79+
pico_sign_binary(hello_serial_enc ${CMAKE_CURRENT_LIST_DIR}/private.pem)
8080
pico_hash_binary(hello_serial_enc)
8181
pico_encrypt_binary(hello_serial_enc ${CMAKE_CURRENT_LIST_DIR}/privateaes.bin ${CMAKE_CURRENT_LIST_DIR}/ivsalt.bin)
8282

File renamed without changes.

pico_w/wifi/ota_update/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ target_link_libraries(picow_ota_update_background
2020
pico_use_wifi_firmware_partition(picow_ota_update_background)
2121

2222
pico_hash_binary(picow_ota_update_background)
23-
pico_sign_binary(picow_ota_update_background)
23+
pico_sign_binary(picow_ota_update_background ${CMAKE_CURRENT_LIST_DIR}/private.pem)
2424
# pico_set_binary_type(picow_ota_update_background no_flash)
2525
# pico_package_uf2_output(picow_ota_update_background 0x10000000)
2626

@@ -48,7 +48,7 @@ target_link_libraries(picow_ota_update_poll
4848
pico_use_wifi_firmware_partition(picow_ota_update_poll)
4949

5050
pico_hash_binary(picow_ota_update_poll)
51-
pico_sign_binary(picow_ota_update_poll)
51+
pico_sign_binary(picow_ota_update_poll ${CMAKE_CURRENT_LIST_DIR}/private.pem)
5252
# pico_set_binary_type(picow_ota_update_background no_flash)
5353
# pico_package_uf2_output(picow_ota_update_background 0x10000000)
5454

pico_w/wifi/ota_update/private.pem

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-----BEGIN EC PARAMETERS-----
2+
BgUrgQQACg==
3+
-----END EC PARAMETERS-----
4+
-----BEGIN EC PRIVATE KEY-----
5+
MHQCAQEEIAXAdiilH8wT07TESUzWPt+BY9+NcchvYU3xbnpK+CBNoAcGBSuBBAAK
6+
oUQDQgAEYYJtMQFGW4AB94tU3u/Qir5sRcYjBYMqCa+8gxsYd9OwMS3dqWKsnVBz
7+
dyy7bFWdJzXDMb9o20xRRd57Q9xSYw==
8+
-----END EC PRIVATE KEY-----

0 commit comments

Comments
 (0)