[openssl-users] porting socket ssl python to c++

Wim Lewis wiml at omnigroup.com
Wed Aug 1 19:59:13 UTC 2018


This pair of articles is quite old, so some of the API details have changed, but it has an overall description of how to use OpenSSL:
   https://www.linuxjournal.com/article/4822
   https://www.linuxjournal.com/article/5487

The link to the example code is broken, but you can find it here:
   https://github.com/Andersbakken/openssl-examples/

One thing to be aware of is that the check_cert() function is just a sketch of what a real check_cert() function would need to do (which depends on your application, to some extent). There are some functions that have been added to OpenSSL since then that, AIUI, can replace having to do those checks in your own check_cert():
    https://www.openssl.org/docs/man1.1.0/crypto/X509_check_host.html




More information about the openssl-users mailing list