Topic: Using examples to verify a certificate
2007-12-13 06:19:18 UTC
hello:
I had make client certificate , server certificate and ca. my os is linux.
How can I do verify the server certificate use the wolfssl? Could you give me an example?
thanks.
2008-01-07 21:45:23 UTC
Hi,
Sorry for the delay, I missed this post.
The best example is in examples/client/client.c. The call to SSL_CTX_load_verify_locations() sets the CA you wish to verify the server with. An error code from SSL_connect() may indicate a verification error, e.g., out of date or invalid signature.
Hope this helps,
Todd