1#!/bin/sh 2 3# As explained in 4# https://gist.github.com/darrenjs/4645f115d10aa4b5cebf57483ec82eca 5 6openssl genrsa -des3 -passout pass:xxxx -out server.pass.key 2048 7openssl rsa -passin pass:xxxx -in server.pass.key -out server.key 8rm -f server.pass.key 9 10openssl req \ 11 -subj "/" \ 12 -new -key server.key -out server.csr 13 14openssl x509 -req -sha256 -days 99999 -in server.csr -signkey server.key -out server.crt 15rm -f server.csr 16