#!/usr/bin/env sh
# Generate a new private key and certifcate using the argument as the base filename.
# $1 = Domain
openssl req -x509 -nodes -days 730 -sha1 -newkey rsa:2048 -keyout "$1.key" -out "$1.cert" \
-subj "/C=GB/ST=State/L=Town/O=Company/OU=OrgUnit/CN=$1/emailAddress=my@email.com"openssl x509 -in my.cert -text -noout