Skip to content

mcuboot-master imgtool.py sign error #7677

@changkong5

Description

@changkong5

lsb@lsb-ThinkPad-E470:zephyr-master-v1.11.99.x$ ./mcuboot-master/scripts/imgtool.py sign \

 --key ./mcuboot-master/root-rsa-2048.pem \
 --header-size 0x200 \
 --align 8 \
 --version 1.0 \
 --included-header \
 ./usr/nrf52/smp_svr/build/zephyr/zephyr.hex signed.hex

Traceback (most recent call last):
File "./mcuboot-master/scripts/imgtool.py", line 150, in
args()
File "./mcuboot-master/scripts/imgtool.py", line 147, in args
subcmdsargs.subcmd
File "./mcuboot-master/scripts/imgtool.py", line 85, in do_sign
img.sign(key)
File "/home/lsb/Desktop/zephyr-master-v1.11.99.x/mcuboot-master/scripts/imgtool/image.py", line 135, in sign
sig = key.sign(bytes(self.payload))
File "/home/lsb/Desktop/zephyr-master-v1.11.99.x/mcuboot-master/scripts/imgtool/keys/rsa.py", line 92, in sign
return self.key.sign(
AttributeError: '_RSAPrivateKey' object has no attribute 'sign'
lsb@lsb-ThinkPad-E470:zephyr-master-v1.11.99.x$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions