openssl command to generate crt code example
Example 1: generate key and certificate openssl
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
Example 2: openssl generate self signed certificate
openssl.exe genrsa -out <yourcertname>.key 4096
openssl.exe req -new -key yourcertname.key -out yourcertname.csr