use OPENSSL_free to free DER public and private key buffers