makecert.sh (333B)
1 #!/bin/zsh 2 # call this script with an email address (valid or not). 3 # like: 4 # ./makecert.sh joe@random.com 5 mkdir .certs 6 rm .certs/* 7 echo "make client cert" 8 openssl req -new -nodes -x509 -out .certs/client.pem -keyout .certs/client.key -days 3650 -subj "/C=DE/ST=NRW/L=Earth/O=Random Company/OU=IT/CN=www.random.com/emailAddress=$1" 9