openssl convert pem to crt code example
Example 1: convert pem to private key openssl
openssl rsa -outform der -in private.pem -out private.key
Example 2: create cert from pem
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt