I am implementing a library in c++ using the openssl library. How do I fetch and verify a certificate from a website using the openssl library.