Quick and dirty SSL Cert + Key

Here is a quick and dirty way to generate a self-signed SSL certificate + key:

CN="192.168.33.11"
openssl req -new -days 7300 -batch \
    -newkey rsa:2048 -keyout "${CN}.key" -nodes \
    -subj "/C=BE/ST=Antwerp/O=KRASH/commonName=${CN}/" \
    -x509 -out "${CN}.crt"