diff options
-rwxr-xr-x | painless-le.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/painless-le.sh b/painless-le.sh index 65a4a98..3a15cd5 100755 --- a/painless-le.sh +++ b/painless-le.sh @@ -58,6 +58,11 @@ CERTIFICATE_ONLY="${ARGUMENT_DIRECTORY%/}/certificate_only.pem" CERTIFICATE_FULL="${ARGUMENT_DIRECTORY%/}/certificate_full.pem" #=============================================================================== +# Delete Certificate-Signing-Request (CSR) file on exit +#=============================================================================== +trap 'rm ${REQUESTFILE}' EXIT + +#=============================================================================== # Generate Certificate-Signing-Request (CSR) #=============================================================================== openssl req -config <(cat "${OPENSSLCONF}" <(printf "[SAN]\nsubjectAltName=DNS:`echo ${ARGUMENT_HOSTNAMES} | sed "s/:/,DNS:/g"`")) \ |