From 641a9eaf784dbc10e8aa62d2b82ae1342d6dfa84 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 23 Dec 2016 09:20:21 +0100 Subject: Delete Certificate-Signing-Request (CSR) file which was created by mktemp on exit. --- painless-le.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/painless-le.sh b/painless-le.sh index 65a4a98..3a15cd5 100755 --- a/painless-le.sh +++ b/painless-le.sh @@ -57,6 +57,11 @@ LETSENCRYPT_ENDPOINT="https://acme-v01.api.letsencrypt.org/directory" 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) #=============================================================================== -- cgit v1.2.3