smallstep / certificates

🛡️ A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH.
https://smallstep.com/certificates
Apache License 2.0
6.81k stars 445 forks source link

Do not fail creating the provisioner HTTP client #2034

Closed maraino closed 1 month ago

maraino commented 1 month ago

Description

This commit avoids an error starting the CA if the http.DefaultTransport is not an *http.Transport. If the DefaultTransport is overwritten, the newHTTPClient method will return a simple http.Client. With an http.Transport, it will return a client that trusts the system certificate pool and the CA roots.