Blob


1 Icinga2 servers in the wild often serve self-signed certificates which
2 fail verification by Go's tls client. To ignore the errors, Dial the server
3 with a modified http.Client:
5 c := &http.Client{
6 Transport: &http.Transport{
7 TLSClientConfig: &tls.Config{
8 InsecureSkipVerify: true,
9 },
10 },
11 }
12 client, err := icinga.Dial(host, user, pass, c)
13 if err != nil {
14 // handle error
15 }
16 ...
18 ## Why?
20 The terraform provider...