Topic: CyaSSL_KeyPemToDer() fails for public key
It appears that parsing of public keys in PEM format is not supported.
My goal is to have a user supply a public key in PEM format which is then used for verification of signed firmware update files.
I have also tried exporting the public key to DER format and loading with RsaPublicKeyDecode() but RsaSSL_Verify() is failing with RSA_PAD_E (-201). I've added the preprocessor define RSA_DECODE_EXTRA to enable parsing the public key from the DER. The key and signature is 2048 bits in length.
The signature is being generated with openssl:
openssl dgst -sha1 -out build/firmware.bin.sign -sign private.pem firmware.bin