convert pkcs7 and cer to p12 code example Example: convert pem to private key openssl openssl rsa -outform der -in private.pem -out private.key