(3 replies, posted in wolfSSL)

Thanks Kaleb, that's extremely helpful.  I've been able to get certificate dates in readable format now.

It might be nice if a note was added to the WolfSSL manual API reference on the return values for these functions, that the data pointed to is ASN1 format, and some information on where that format definition might be found.



(3 replies, posted in wolfSSL)

In order to print some information on a received certificate in an application using SSL, I'm looking at the wolfSSL_X509_notBefore() and wolfSSL_X509_notAfter() functions.

I'd like to use these to print out the received certificate activation and expiration dates.

I cannot find any information on how to interpret the "byte pointer" returned by these functions and convert it to a human readable time, either in the manual or the examples.

What is the format, and how should it be converted to a readable string?