]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
fix apache mode for SAN certificate
authorneil <git@byneil.com>
Sun, 10 Jan 2016 13:02:39 +0000 (21:02 +0800)
committerneil <git@byneil.com>
Sun, 10 Jan 2016 13:02:39 +0000 (21:02 +0800)
le.sh

diff --git a/le.sh b/le.sh
index f82c09c7ee6096a473de35a348b628b3ff2fa5e8..c97f9dd70e67a256b061bcf0498cf1b433ff10db 100755 (executable)
--- a/le.sh
+++ b/le.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-VER=1.0.1
+VER=1.0.2
 PROJECT="https://github.com/Neilpang/le"
 
 DEFAULT_CA="https://acme-v01.api.letsencrypt.org"
@@ -516,8 +516,7 @@ issue() {
       _debug wellknown_path "$wellknown_path"
       
       mkdir -p "$wellknown_path"
-      wellknown_path="$wellknown_path/$token"
-      echo -n "$keyauthorization" > $wellknown_path
+      echo -n "$keyauthorization" > "$wellknown_path/$token"
     fi
     wellknown_url="http://$d/.well-known/acme-challenge/$token"
     _debug wellknown_url "$wellknown_url"