Fix shared_ptr usage bug in 2.4 openssl_cert.cpp