I am having a problem with writing certificate. When I downloaded by tool, everything work fine.
But when I tried by example "CERT_DOWNLOADER_OTA_HTTPS_DOWNLOAD_EXAMPLE" with same certificate file, it doesn't work, error -12 is thrown.
I tried to read data from serial flash where they saved root certificates to 4KB buffer and compare:
- First 20 bytes header are same (0-19)
- From byte 56th -> 4095 are same.
- The different happened from byte 20th to byte 55.
These data are converted (both cases) and different with original certificate data so we don't know what they stand for.
I enable ENABLE_VERIFICATION and all data is written correctly by this flag, and I also got a success message.
How does the tool convert original certificate file to save to flash? what is this structure, any open source for the tool "root_certificate_downloader.exe" please?