Sending and Verifying SSL certificate using c/c++

2019-08-28 06:15发布

问题:

I am actually working on a protocol security. I need to send the certificate and verify it on the other side.

Now here is what I have planned:
1 Send the certificate chain just like a normal stream of data
2.Capture it on the other side and store it in a char[] buffer

Now, how to verify the certificate from this char[]buffer and extract the needed parameters?

I need it in c/c++.

回答1:

This blog post about Verifying Using a Certificate Store using OpenSSL shows how to verify certificate against CA.