From 95590601f5ef7835a7a81b12565a702efbed4165 Mon Sep 17 00:00:00 2001 From: Florian Bauer Date: Wed, 22 Jan 2025 20:20:17 +0100 Subject: [PATCH] fix: also handle ocsp requests to subpaths of /ocsp/ Signed-off-by: Florian Bauer --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 8e77957..6f50ad6 100644 --- a/main.go +++ b/main.go @@ -136,8 +136,11 @@ func main() { signal.Notify(hupChan, syscall.SIGHUP) go reloadCrlWorker(hupChan, loadCrl) + responder := cfocsp.NewResponder(source, nil) + applicationRouter := http.NewServeMux() - applicationRouter.Handle("/ocsp", cfocsp.NewResponder(source, nil)) + applicationRouter.Handle("/ocsp", responder) + applicationRouter.Handle("/ocsp/", responder) applicationRouter.HandleFunc("/crl", func(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/pkix-crl") w.Write(crl.Raw)