This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220: 10289 SL_ERROR_FS_WRONG_SIGNATURE_SECURITY_ALERT when closing file with certificate

Part Number: CC3220

Hi,

I'm trying to update the file mcuflashimg.bin on the cc3220modasf and am getting an error 10289 SL_ERROR_FS_WRONG_SIGNATURE_SECURITY_ALERT when closing the file. Here are the steps I am following:

I'm flashing once with Uniflash, using the catalog certcatalogPlayGround20160911.lst (It gets renamed to certcatalogPlayGround.lst when I upload the FW file to uniflash, I guess it still points to the correct one... )

I leave the dummy-root-ca-cert as certificate for the file. All three files of the certificate chain are present on the file system (dummy-root-ca-cert, dummy-trusted-ca-cert, dummy-trusted-cert)

I then program the device with uniflash.

Then I use the tools/"sign file" of Uniflash to sign the exact same binary using the dummy-root-ca-cert-key. I send both the binary and the signature to the device using our own library and try to write the file which always fails on close with the error: -10289 SL_ERROR_FS_WRONG_SIGNATURE_SECURITY_ALERT. 

I close it with the command sl_FsClose(FileHandle, "dummy-root-ca-cert", &buff,  256);

I have tried the same thing using the dummy-trusted-cert and its key, I get the same error.  

Note: I'm disabling the cert store in slnetsock using SLNETSOCK_SEC_ATTRIB_DISABLE_CERT_STORE to use our self signed certificate for HTTPS communication. I suppose this shall have no influence on the file system certificates.

Any idea what can be the issue?