Tips and tricks
Generate openssl .pem files from .key and .crt
First , you need to generate the private key
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt
Then, you can convert them to pem files
openssl rsa -in privateKey.key -text > privateKey.pem
openssl x509 -inform PEM -in certificate.crt > certificate.pem
Or go to https://manage.sslforfree.com/