convert .pem key to .crt key code example Example: convert pem to crt openssl x509 -outform der -in your-cert.pem -out your-cert.crt