Skip to content

Commit

Permalink
Webroot plugin should not hardcode domain path
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsz committed Mar 20, 2018
1 parent 1b9f469 commit 0cb0101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/certificaat/plugins/webroot.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0cb0101

Please sign in to comment.