Changing JWT to use certificates

This commit is contained in:
2026-04-02 17:02:13 -04:00
parent a7109505a2
commit 12fc1bc76d
3 changed files with 11 additions and 24 deletions

View File

@@ -20,7 +20,13 @@ func decodeHash(encoded string) (*argonParams, []byte, []byte, error) {
}
func main() {
var err error
libshared.Pool = libshared.GetDbPool()
privateKey, err = libshared.LoadPrivateKey("keys/private.pem")
if err != nil {
log.Fatal("Failed to load private key:", err)
}
http.HandleFunc("/identity/create-local-identity", createLocalHandler)
http.HandleFunc("/identity/authenticate", authenticateHandler)