Initial commit

This commit is contained in:
2026-11-16 20:49:40 +02:00
commit eed5a36dd4
32 changed files with 621 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package main
import (
"log"
"net/http"
"time"
)
func main() {
mux := http.NewServeMux()
mux.HandleFunc("GET /healthz", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
_, _ = w.Write([]byte("ok\n"))
})
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
http.Error(w, "key directory not implemented", http.StatusNotImplemented)
})
srv := &http.Server{Addr: ":8082", Handler: mux, ReadHeaderTimeout: 5 * time.Second}
log.Printf("keyserver listening on %s", srv.Addr)
log.Fatal(srv.ListenAndServe())
}