Merge pull request #5 from redbaron/acmev2-upstream

Fixes for ACME client http transport
This commit is contained in:
James Munnelly 2018-04-11 14:30:28 +01:00 committed by GitHub
commit ef51483cbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,8 +132,13 @@ func dialTimeout(ctx context.Context, network, addr string) (net.Conn, error) {
func (a *Acme) acmeClientWithKey(accountPrivKey *rsa.PrivateKey) client.Interface {
tr := &nethttp.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: a.issuer.GetSpec().ACME.SkipTLSVerify},
DialContext: dialTimeout,
Proxy: nethttp.ProxyFromEnvironment,
DialContext: dialTimeout,
TLSClientConfig: &tls.Config{InsecureSkipVerify: a.issuer.GetSpec().ACME.SkipTLSVerify},
MaxIdleConns: 100,
IdleConnTimeout: 90 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
}
client := &nethttp.Client{
// Stopgap user-agent roundtripper until the upstream 'crypto/acme'