From 0cb0101a673426c0012db5822cd9eae37722304b Mon Sep 17 00:00:00 2001 From: Daniel Szmulewicz Date: Tue, 20 Mar 2018 21:42:25 +0200 Subject: [PATCH] Webroot plugin should not hardcode domain path --- src/certificaat/plugins/webroot.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/certificaat/plugins/webroot.clj b/src/certificaat/plugins/webroot.clj index d123249..6ae90df 100644 --- a/src/certificaat/plugins/webroot.clj +++ b/src/certificaat/plugins/webroot.clj @@ -12,7 +12,7 @@ (doseq [frozen-challenge frozen-challenges :let [uri (new URI (slurp frozen-challenge)) challenge (challenge/restore session uri) - file (io/file (str path "/.well-known/acme-challenge/" (.getToken challenge)))] + file (io/file (str path "/" domain "/.well-known/acme-challenge/" (.getToken challenge)))] :when (= (.getType challenge) "http-01")] (io/make-parents file) (spit file (.getAuthorization challenge))