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.

CC3220MODA: To extract the serial number from a certification file

Part Number: CC3220MODA


Hello,

(The part# is CC3220MODASF.)

Could you please advise how to extract the serial number from a certification file in the CC3220MODA file system?
It would be glad if there is an API.

If linux, the command would be...

[root@abc ~]# openssl x509 -in sourcefile.pem -noout -serial
serial=12341234123412341234123412341234

My customer plans to let CC3220MODA to extract the serial number, send it to a server, and make sure it is the latest.

  • Hi Hideaki,

    There is no API in the host driver that can cause the network processor to read a certificate file and extract the serial number. This would have to be implemented in application code by reading the desired file with the file system API and parsing it for the serial number.

    Best Regards,
    Ben M
  • Benjamin,
    Thank you for your reply.
    Could you please tell me one more?:

    So, CC3220MODASF doesn't have APIs to read the seiral number from a certification file.
    Is it pupolar for OTA- or field-updatable uCs ?
  • Hi,

    You can create files on the filesystem during initial programming or at runtime through the file system API. Once on the file system, the network processor can access the files directly (without the interference of the host MCU) for operations like TLS when the host application associates the certificate with a socket. However, the network processor doesn't provide an API for extracting the serial number from a certificate file on the file system. The file would have to be read by the host MCU and then the serial number extracted using application code.

    I'm not sure I understand your second question, can you clarify?

    Hideaki Nambu said:
    Is it pupolar for OTA- or field-updatable uCs ?

    Best Regards,

    Ben M