convert key.pem to .key ssl code example Example: convert pem to private key openssl openssl rsa -outform der -in private.pem -out private.key