imgtool: Fix key argument
Changing the name of the command line argument changes the name of the
fields used to access it.  Change the keysigning code to reflect this,
avoiding a stack dump when trying to generate keys.
@@ -7,9 +7,9 @@ from imgtool import version
import sys
def gen_rsa2048(args):
- keys.RSA2048.generate().export_private(args.keyfile)
+ keys.RSA2048.generate().export_private(args.key)
def gen_ecdsa_p256(args):
- keys.ecdsa256p1.generate().export_private(args.keyfile)
+ keys.ecdsa256p1.generate().export_private(args.key)
def gen_ecdsa_p224(args):
print("TODO: p-224 not yet implemented")
