MicrochipTech / mbedtls-examples

8 stars 10 forks source link

Problems setting up a Certificate Ecosystem #8

Open smarty42 opened 4 years ago

smarty42 commented 4 years ago

The description on the following page: https://github.com/MicrochipTech/mbedtls-examples/tree/master/scripts

does not work actually. For Python, version 3.8.1 was used.

The description for creating the device is wrong:

create_device.py

must be changed to

create_device.py –-devicekey

But unfortunately, a hid library is missing, and installing the hid by pip does not solve the problem. Therefore I must remove the "import hid" from the "create_device.py" script.


How to create "cert_chain.c"? I could not find any information in this example. It looks that the script "cert2certdef.py" is missing. Here I use the script from the following repository:

https://github.com/kmwebnet/ECC608-Provision

The description of the command can be found in the repository from above:

cert2certdef.py --signer-cert signer-ca.crt --device-cert device.crt

This will create now the file "cert_chain.c".


The next step is to create the "provision.h" file with:

export_header.py