How to use x509parse_pubkey function in SDK3.3.1

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I would like to get a public key from a certificate by x509parse_pubkey, but returns an error, error code is -22.

There have x509parse_pubkey reference code? thanks

0 Likes
2 Replies
Anonymous
Not applicable

Hello,

You can use x509parse.c as a reference.

The file is located here:

...\WICED\security\BESL\crypto_open

Hope that helps.

Thanks,

Arsh Buch

0 Likes
Anonymous
Not applicable

Hi,

I'm wondering if you mean the return code is -22 or

-0x0220 (TROPICSSL_ERR_X509_KEY_INVALID_PEM).

0 Likes