Closed nickysemenza closed 5 years ago
i'm using this to allow setting custom timeouts and tls config like so:
dr := dac.NewRequest(...) verifyCert := func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error { // return nil } dr.HTTPClient = &http.Client{ Timeout: 15 * time.Second, Transport: &http.Transport{ TLSClientConfig: &tls.Config{ InsecureSkipVerify: true, VerifyPeerCertificate: verifyCert, }, }, } res, err = dr.Execute()
I've kept it backwards compatible with the existing CertVal functionality
@xinsnake Can you review and merge this PR please? I could use this functionality in one of my projects.
i'm using this to allow setting custom timeouts and tls config like so:
I've kept it backwards compatible with the existing CertVal functionality