问题
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.
来源:https://stackoverflow.com/questions/10912921/sending-and-verifying-ssl-certificate-using-c-c