Generating a self-signed certificate
The req command is also used to generate a self-signed certificate. The output file should have a *.pem extension.
- Windows
Openssl> req -new -x509 -key key-filename.pem -out selfcert.pem -SHA256
- Linux
$ openssl req -new -x509 -key key-filename.pem -out selfcert.pem -SHA256