Tree
- Tree:
574447b47269d745f6aa4d6b68dba81cafba5dce- Date:
- Message:
- README: use http.DefaultClient in example The Go devs set useful things for us that we shouldn't lose just because we're something insecure.
| README.md | commits | blame |
| go.mod | commits | blame |
| http.go | commits | blame |
| icinga.go | commits | blame |
| users.go | commits | blame |
README.md
Icinga2 servers in the wild often serve self-signed certificates which
fail verification by Go's tls client. To ignore the errors, Dial the server
with a modified http.Client:
t := http.DefaultTransport.(*http.Transport)
t.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
c := http.DefaultClient
c.Transport = t
client, err := icinga.Dial(host, user, pass, c)
if err != nil {
// handle error
}
...
## Why?
The terraform provider...
