forked from TrueCloudLab/certificates
Merge pull request #557 from joejulian/http01-isv
use InsecureSkipVerify for validation
This commit is contained in:
commit
470b546d59
1 changed files with 7 additions and 1 deletions
|
@ -64,8 +64,14 @@ type HandlerOptions struct {
|
||||||
|
|
||||||
// NewHandler returns a new ACME API handler.
|
// NewHandler returns a new ACME API handler.
|
||||||
func NewHandler(ops HandlerOptions) api.RouterHandler {
|
func NewHandler(ops HandlerOptions) api.RouterHandler {
|
||||||
|
transport := &http.Transport{
|
||||||
|
TLSClientConfig: &tls.Config{
|
||||||
|
InsecureSkipVerify: true,
|
||||||
|
},
|
||||||
|
}
|
||||||
client := http.Client{
|
client := http.Client{
|
||||||
Timeout: 30 * time.Second,
|
Timeout: 30 * time.Second,
|
||||||
|
Transport: transport,
|
||||||
}
|
}
|
||||||
dialer := &net.Dialer{
|
dialer := &net.Dialer{
|
||||||
Timeout: 30 * time.Second,
|
Timeout: 30 * time.Second,
|
||||||
|
|
Loading…
Reference in a new issue