From 8229f31f70ecdbe03d03c96cba17d6ee85397bca Mon Sep 17 00:00:00 2001 From: tjpcc Date: Fri, 20 Jan 2023 10:58:35 -0700 Subject: "tlsauth" contrib package This package adds authentication middlewares via TLS client certificates. --- contrib/cgi/cgi.go | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib/cgi') diff --git a/contrib/cgi/cgi.go b/contrib/cgi/cgi.go index 7f88e57..6a420b3 100644 --- a/contrib/cgi/cgi.go +++ b/contrib/cgi/cgi.go @@ -177,6 +177,7 @@ func prepareCGIEnv( environ = append( environ, "TLS_CLIENT_HASH="+fingerprint(cert.Raw), + "TLS_CLIENT_CERT="+hex.EncodeToString(cert.Raw), "TLS_CLIENT_ISSUER="+cert.Issuer.String(), "TLS_CLIENT_ISSUER_CN="+cert.Issuer.CommonName, "TLS_CLIENT_SUBJECT="+cert.Subject.String(), -- cgit v1.2.3