summaryrefslogtreecommitdiff
path: root/modules/caddypki
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2021-06-21 11:56:41 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2021-06-21 11:56:41 -0600
commit2de7e14e1c5fcc8c846b341583597ab65eaf7156 (patch)
tree4d505b7bc9a11039c096b80f5fe22eda3b8fbb75 /modules/caddypki
parent885a9aaf48316ee17ec668fe0174f32d95431bb5 (diff)
acmeserver: Trim slashes from path prefix
See https://caddy.community/t/mtls-tls-internal-error/12807
Diffstat (limited to 'modules/caddypki')
-rw-r--r--modules/caddypki/acmeserver/acmeserver.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/caddypki/acmeserver/acmeserver.go b/modules/caddypki/acmeserver/acmeserver.go
index e6399ea..7f9195e 100644
--- a/modules/caddypki/acmeserver/acmeserver.go
+++ b/modules/caddypki/acmeserver/acmeserver.go
@@ -150,9 +150,9 @@ func (ash *Handler) Provision(ctx caddy.Context) error {
// create the router for the ACME endpoints
acmeRouterHandler := acmeAPI.NewHandler(acmeAPI.HandlerOptions{
CA: auth,
- DB: acmeDB, // stores all the server state
- DNS: ash.Host, // used for directory links; TODO: not needed (follow-up upstream with step-ca)
- Prefix: ash.PathPrefix, // used for directory links
+ DB: acmeDB, // stores all the server state
+ DNS: ash.Host, // used for directory links; TODO: not needed (follow-up upstream with step-ca)
+ Prefix: strings.Trim(ash.PathPrefix, "/"), // used for directory links
})
// extract its http.Handler so we can use it directly