Tree
- Tree:
cd9376fe1d3dcf52a4d906ccf6d49046f9c61eb6- Date:
- Message:
- Embed http.Client in Client No need to have it named
| 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:
c := &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
},
},
}
client, err := icinga.Dial(host, user, pass, c)
if err != nil {
// handle error
}
...
## Why?
The terraform provider...
