Open Caelebs opened 9 months ago
Looks like this will require a code tweak to expose this as a config option. I'll look into this.
Got similar error while proxying requests to the https with the self-signed certificate: Failed to write response body: Post "https://host" tls: failed to verify certificate: x509: certificate signed by unknown authority
@SamJakob any plans to add support for that soon?
You can modify line 319 in the libproxy/proxy.go
file to be as follows:
var client = &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
},
},
}
Then repackage the docker image. @r-brown
You can modify line 319 in the
libproxy/proxy.go
file to be as follows:var client = &http.Client{ Transport: &http.Transport{ TLSClientConfig: &tls.Config{ InsecureSkipVerify: true, }, }, }
Then repackage the docker image. @r-brown
sorry , I can not find this code in the libproxy/proxy.go
Replace that with the provided snippet from previous answer and don't forget to import "crypto/tls" https://github.com/hoppscotch/proxyscotch/blob/cc0c4c79ae8bb001d731bdfc13d6917dbc3d46f0/libproxy/proxy.go#L316
I have an HTTPS service with a certificate issued based on a domain name, but proxyscotch tells me that it cannot validate the certificate when I access it from an IP address in a development environment. Is there any option or configuration to turn off certificate validation? Just like Insomnia, I can uncheck "Validate certificates".
Here's my compose config file