[openssl] How to extract public key using OpenSSL?