Mbed forum

Mbedtls_x509_crt_info alternative with more detail


(Ken Goldman) #1

Is there an alternative that prints more than mbedtls_x509_crt_info? Specifically, I’d like to see the public key.


Certificate parsing to mbedtls_x509_crt to char buffer
(Ron Eldor) #2

HI @kgoldman
There isn’t much an alternative for mbedtls_x509_crt_info, however, you can follow the sample application key_app to see how to print the public key, wither in your custom verify function, or after,using the pk_context member of your mbedtls_x509_crt.
Regards,
Mbed TLS Team member
Ron