MicrochipTech / mbedtls-examples

8 stars 10 forks source link

export_header.py error #4

Closed jpiwek closed 5 years ago

jpiwek commented 5 years ago

Hi Bryan,

seems like export_header.py throws an exception at line 57

PS C:\development\git\mbedtls-examples\scripts> py .\export_header.py --root .\root-ca.crt --signer .\signer-ca.crt --device .\d012357B96F853E43EE_0.crt Traceback (most recent call last): File ".\export_header.py", line 86, in create_output_file(args.out, args.root, args.device, args.signer) File ".\export_header.py", line 57, in create_output_file root_key_bytes = root_cert.public_key().public_bytes(serialization.Encoding.X962, serialization.PublicFormat.UncompressedPoint) File "C:\Users\jpiwe\AppData\Local\Programs\Python\Python36-32\lib\enum.py", line 324, in getattr raise AttributeError(name) from None AttributeError: X962

bryan-hunt commented 5 years ago

The module “cryptography” needs to be updated.

See requirements.txt

jpiwek commented 5 years ago

thanks! now it works!