Hints from Mocana Engineering

Can I use OpenSSL certificate and keys with NanoSSL?

Yes. To convert an OpenSSL certificate to NanoSSL, simply convert the certificate from PEM to DER format by defining in your project __ENABLE_MOCANA_PEM_CONVERSION__; and then use the CA_MGMT_decodeCertificate() API to convert OpenSSL certificate to NanoSSL. To convert OpenSSL key to NanoSSL key, simply call: CA_MGMT_convertKeyDER() or CA_MGMT_convertKeyPEM() depending whether your key is stored as DER or PEM file. Note: PEM files are base64 encoded DER files.

Tags: , , ,

Leave a Reply