Browse Source

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>
release/1.12
Jukka Laitinen 4 years ago committed by Beat Küng
parent
commit
09e62f96b2
  1. 4
      Tools/cryptotools.py
  2. 5
      Tools/test_keys/key0.pub
  3. 0
      Tools/test_keys/test_keys.json

4
Tools/cryptotools.py

@ -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

@ -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,

0
Tools/test_keys.json → Tools/test_keys/test_keys.json

Loading…
Cancel
Save