iap_curl
iap_curl copied to clipboard
Provision for certificates not signed from a CA
When the service has TLS over a self-signed certificate, iap_curl (which uses curl) returns the standard error:
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
Instead, iap_curl should provision to turn off curl's verification of the certificate.
It could be achieved like this here:
args := append(
[]string{"-kv", "-H", authHeader}, // For IAP
c.cfg.GetServiceArgs(url)...,
)
I see.
Could you send me your patch as PR?