aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2016-12-23 09:16:27 +0100
committerThomas Lange <code@nerdmind.de>2016-12-23 09:16:27 +0100
commita6a2f4a09a0e7c3bdb876c394324347d53fe0610 (patch)
tree6ca3f2fdc945f07e89f74b7ab372039d7cfe1c7e
parent2d5d918eeb89cdae67dea7a979b5917f451fd992 (diff)
downloadpainlessle-a6a2f4a09a0e7c3bdb876c394324347d53fe0610.tar.gz
painlessle-a6a2f4a09a0e7c3bdb876c394324347d53fe0610.tar.xz
painlessle-a6a2f4a09a0e7c3bdb876c394324347d53fe0610.zip
mktemp now creates the temporary CSR file by itself and with restricted UNIX file permissions.
-rwxr-xr-xpainless-le.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/painless-le.sh b/painless-le.sh
index 887b111..65a4a98 100755
--- a/painless-le.sh
+++ b/painless-le.sh
@@ -51,7 +51,7 @@ LETSENCRYPT_ENDPOINT="https://acme-v01.api.letsencrypt.org/directory"
# Define required paths
#===============================================================================
OPENSSLCONF="/etc/ssl/openssl.cnf"
- REQUESTFILE=`mktemp -u /tmp/letsencrypt.XXXX.csr`
+ REQUESTFILE=`mktemp /tmp/painless-le.XXXXXXXXXX.csr`
CONFIDENTIAL="${ARGUMENT_DIRECTORY%/}/confidential.pem"
INTERMEDIATE="${ARGUMENT_DIRECTORY%/}/intermediate.pem"
CERTIFICATE_ONLY="${ARGUMENT_DIRECTORY%/}/certificate_only.pem"