From 752fba82ae21b49692b67e54766c1235b0d22853 Mon Sep 17 00:00:00 2001 From: rob Date: Sat, 13 Jan 2024 03:35:42 -0500 Subject: [PATCH] make project name variable --- ssl/mkcert | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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