use InsecureSkipVerify for validation

The server will not yet have a valid certificate so we need to disable
certificate validation in the HTTPGetter.
This commit is contained in:
Joe Julian 2021-04-27 08:18:35 -07:00
parent 582d6b161d
commit 0369151bfa
No known key found for this signature in database
GPG key ID: FAB12BE0575D999B

View file

@ -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,