I want to use SSL in my cross platform program. I decided to use OpenSSL.
I have OpenSSL installed, and at this point I am looking through the code and documentation trying to figure out how to use the library.
Do you have any resources or simple programs or tutorials that will walk me through integrating OpenSSL with my program?
The very rough guide is:
SSL_CTX with SSL_CTX_new();SSL_CTX_use_certificate_file();SSL_CTX_use_PrivateKey_file();SSL with SSL_new();SSL to that of your network connection with SSL_set_fd();SSL_connect();SSL_accept().Thereafter use SSL_read() and SSL_write() to read and write from the connection, and finish with SSL_shutdown(). The SSL_CTX can be re-used to create SSL objects for many simultaneous sessions.
You can find some useful OpenSSL commands on this page:
http://www.networking4all.com/en/support/ssl+certificates/manuals/openssl/openssl+commands/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With