lego/acme
Daniel McCarney 8f9e90b2a0 ACME HTTP: Allow customizing HTTP client x509.CertPool (#571)
This commit updates `acme/http.go` to allow customizing the
`*x509.CertPool` used by the `HTTPClient` by specifying the filepath of
a custom CA certificate via the `CA_CERTIFICATE` environment variable.

This allows developers to easily trust a non-standard CA when
interacting with an ACME test server (e.g. Pebble):

```
CA_CERTIFICATE=~/go/src/github.com/letsencrypt/pebble/test/certs/pebble.minica.pem \
lego \
  --server https://localhost:14000/dir \
  --email foo@bar.com \
  -d example.com \
  run
```
2018-06-11 15:45:59 +02:00
..
testdata Dns from resolv.conf (#293) 2016-11-03 19:37:15 +01:00
challenges.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
client.go Added 'processing' status as valid challenge status (#561) 2018-05-31 17:22:37 +02:00
client_test.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
crypto.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
crypto_test.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
dns_challenge.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
dns_challenge_manual.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
dns_challenge_test.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
error.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
http.go ACME HTTP: Allow customizing HTTP client x509.CertPool (#571) 2018-06-11 15:45:59 +02:00
http_challenge.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
http_challenge_server.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
http_challenge_test.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
http_test.go ACME HTTP: Allow customizing HTTP client x509.CertPool (#571) 2018-06-11 15:45:59 +02:00
jws.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
messages.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
provider.go Add ChallengeProviderTimeout type to acme package 2016-03-16 18:17:03 +00:00
utils.go Fix WaitFor calls 2016-03-11 04:52:59 +01:00
utils_test.go Fix WaitFor calls 2016-03-11 04:52:59 +01:00