diff --git a/proxy/proxy.go b/proxy/proxy.go index 66338a2..ec6ea75 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -3,6 +3,7 @@ package proxy import ( "bytes" "context" + "crypto/x509" "io" "net" "net/http" @@ -308,3 +309,7 @@ func (proxy *Proxy) handleConnect(res http.ResponseWriter, req *http.Request) { transfer(log, conn, cconn) } + +func (proxy *Proxy) GetCertificate() x509.Certificate { + return proxy.interceptor.ca.RootCert +}