- pm2
- linux systemd
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365
openssl rsa -in key.pem -out newkey.pem && mv newkey.pem key.pem
Or using the commands below: from this link:
openssl genrsa -out key.pem 1024
openssl req -new -key key.pem -out csr.pem
cmd-i and then click Copy Preferences to Profile.
reference link