decryption using digital certificate

A client application is encrypting a text using private key and sends through socket.

My application(server written in c/c++,unix) receives the chiper-text through socket.
I have client's digital certificate.

now, how do I decrypt(may be using openssl library) this ciper-text using client's digital certificate.




It's pretty straight-forward.

Read the documentation, http://www.openssl.org/docs/ssl/ssl.html

Also, a google query will get you some tutorials.



If you hit a wall, we'll try to help
Last edited on
I've done it before, and it's not easy using that interface at all. Further more, it changes slightly with each minor release, forcing the client code to be updated. Pretty poor work from the OpenBSD project if you ask me.

If you can find an example to follow, do that.
Topic archived. No new replies allowed.