Convert .key and .crt to .pem format
Convert .key to .pem:
openssl rsa -in demo.key -out demo.pem
Convert .crt to .pem:
openssl x509 -in demo.crt -out demo.pem
Convert .key to .pem:
openssl rsa -in demo.key -out demo.pem
Convert .crt to .pem:
openssl x509 -in demo.crt -out demo.pem