Put all the test key material into same directory

Move Tools/test_key.json and key0.pub into same directory.

key0.pub is just a hex-dump of the public key part from the test_key.json,
for easy inclusion into bootloader monocypher sw crypto

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen 2021-05-28 15:36:37 +03:00 committed by Beat Küng
parent caed8e4b05
commit 09e62f96b2
3 changed files with 7 additions and 2 deletions

View File

@ -134,7 +134,7 @@ if(__name__ == "__main__"):
parser.add_argument("signee", help=".bin file to add signature", nargs='?', default=None) parser.add_argument("signee", help=".bin file to add signature", nargs='?', default=None)
parser.add_argument("signed", help="signed output .bin", nargs='?', default=None) parser.add_argument("signed", help="signed output .bin", nargs='?', default=None)
parser.add_argument("--key", help="key.json file", default="Tools/test_keys.json") parser.add_argument("--key", help="key.json file", default="Tools/test_keys/test_keys.json")
parser.add_argument("--rdct", help="binary R&D certificate file", default=None) parser.add_argument("--rdct", help="binary R&D certificate file", default=None)
parser.add_argument("--genkey", help="new generated key", default=None) parser.add_argument("--genkey", help="new generated key", default=None)
args = parser.parse_args() args = parser.parse_args()
@ -153,7 +153,7 @@ if(__name__ == "__main__"):
sys.exit(1) sys.exit(1)
# Issue a warning when signing with testing key # Issue a warning when signing with testing key
if args.key=='Tools/test_keys.json': if args.key=='Tools/test_keys/test_keys.json':
print("WARNING: Signing with PX4 test key") print("WARNING: Signing with PX4 test key")
# Sign the binary # Sign the binary

5
Tools/test_keys/key0.pub Normal file
View File

@ -0,0 +1,5 @@
//Public key to verify signed binaries
0x4d, 0xb0, 0xc2, 0x1, 0x5, 0x55, 0x2a, 0x3c,
0xd7, 0xfb, 0xaf, 0x5c, 0xba, 0x7a, 0xb0, 0x81,
0x1b, 0x36, 0x63, 0xdb, 0x28, 0x52, 0x5e, 0xdb,
0x14, 0x36, 0xf2, 0x57, 0x8d, 0x2, 0xb7, 0xfd,