#!/bin/bash

rm -f *crt *key

openssl genrsa -out dtp-sites.key
openssl req -new -out dtp-sites.csr -key dtp-sites.key -config openssl.cnf
openssl x509 -req -days 3650 -in dtp-sites.csr -signkey dtp-sites.key -out dtp-sites.crt -extensions v3_req -extfile openssl.cnf

rm dtp-sites.csr