OpenSSL key loading implementation