use InsecureSkipVerify for validation

The server will not yet have a valid certificate so we need to disable
certificate validation in the HTTPGetter.
pull/557/head
Joe Julian 3 years ago
parent 582d6b161d
commit 0369151bfa
No known key found for this signature in database
GPG Key ID: FAB12BE0575D999B

@ -64,8 +64,14 @@ type HandlerOptions struct {
// NewHandler returns a new ACME API handler.
func NewHandler(ops HandlerOptions) api.RouterHandler {
transport := &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
},
}
client := http.Client{
Timeout: 30 * time.Second,
Timeout: 30 * time.Second,
Transport: transport,
}
dialer := &net.Dialer{
Timeout: 30 * time.Second,

Loading…
Cancel
Save