From 9ace5f3cb452c4fb0c7483b0d9658966d22fd781 Mon Sep 17 00:00:00 2001 From: InfosecWatchman Date: Tue, 6 Jul 2021 14:28:06 -0400 Subject: [PATCH] Add option to ignore unsigned certs --- proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy.go b/proxy.go index 0dcf09f..823ae6e 100644 --- a/proxy.go +++ b/proxy.go @@ -67,7 +67,7 @@ func NewProxy() (*Proxy, error) { // NewProxyCert returns a new Proxy given CA certificate and key. func NewProxyCert(caCert, caKey []byte) (*Proxy, error) { prx := &Proxy{ - Rt: &http.Transport{TLSClientConfig: &tls.Config{}, + Rt: &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, Proxy: http.ProxyFromEnvironment}, MitmChunked: true, signer: NewCaSignerCache(1024),