Other Parts Discussed in Thread: TEST2
Dear support,
I'm developing on CC3200 device and right now working with OTA reference code example to make it suite our needs. What I try to do is to make verification functionality of downloaded files by OTA library working. It seems to be already implemented and working to some extent as service pack comes with it's signature and is successfully validated (I tested and it works very well). However, I'm not sure how to sign my own files with either certificate or signature, security is not as important as integrity here.
I found a guide to create a certificate for CC3200 devices: http://processors.wiki.ti.com/index.php/CC3100_%26_CC3200_Generate_Certificate where I created a sha1 and signed it with certificate (which I created and signed with self-signed CA). Then I sended all 3 files: f07_sys_filename.hex, f00_sys_filename.cer and f00_sys_filename.sig to the tag. I could also verify that .sig and .cer files are saved on internal SFLASH before .hex file was downloaded. However, when .hex file downloads successfully file on SFLASH could not be closed, sl_FsClose throws SL_FS_ERR_FILE_NOT_EXISTS (-11) for some reason (I know that both .sig and .cer files still exist).
I also tried to only provide sha1 with the following setup: f03_filename.hex and f00_filename.sig, where .sig file was generated as follows:
openssl dgst -sha1 f03_filename.hex > f00_filename.sig
, without any success.
Is it something I'm doing wrong or there is another way to do it better?
Thank you in advance,
Best Regards,
Michael