diff --git a/ssl/mkcert b/ssl/mkcert index bad5d23..d28c31c 100755 --- a/ssl/mkcert +++ b/ssl/mkcert @@ -1,9 +1,11 @@ #!/bin/bash +DTP_PROJECT=dtp-base + rm -f *crt *key -openssl genrsa -out dtp-base.key -openssl req -new -out dtp-base.csr -key dtp-base.key -config openssl.cnf -openssl x509 -req -days 3650 -in dtp-base.csr -signkey dtp-base.key -out dtp-base.crt -extensions v3_req -extfile openssl.cnf +openssl genrsa -out ${DTP_PROJECT}.key +openssl req -new -out ${DTP_PROJECT}.csr -key ${DTP_PROJECT}.key -config openssl.cnf +openssl x509 -req -days 3650 -in ${DTP_PROJECT}.csr -signkey ${DTP_PROJECT}.key -out ${DTP_PROJECT}.crt -extensions v3_req -extfile openssl.cnf -rm dtp-base.csr \ No newline at end of file +rm ${DTP_PROJECT}.csr \ No newline at end of file