Transmission and verification of certificate (openssl) with socket in c
Posted
by allenzzzxd
on Stack Overflow
See other posts from Stack Overflow
or by allenzzzxd
Published on 2010-03-23T23:21:03Z
Indexed on
2010/03/23
23:23 UTC
Read the original article
Hit count: 307
Hello, guys,
I have to write these codes in c. I have already generate the certificate of one terminate t1: t1.pem, which is generated by openssl. The communication between the terminates t1 and t2 has been established via socket in c.
Now I want to send this certificate to another terminate t2.and I want t2 to receive the certificate, verify it and answer with an acceptance to t1. When t1 get this acceptance, it will the rest of stuffs..
But I don't know how to do these things.
For example, I transmit t1.pem as a string? But in t2 side, how can I do to verify? I know there are functions in openssl to do so, but I'm not so clear about it. At last, normally, the acceptance should be like how?
@[email protected] lot of questions here.. sorry...if someone could give me some guide.. Thanks a lot in advance!
© Stack Overflow or respective owner