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