Browse Source
tls: Use Let's Encrypt production endpoint
We're done testing this in staging
master
Matthew Holt
6 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
3 additions and
1 deletions
-
modules/caddytls/acmemanager.go
|
@ -102,8 +102,10 @@ func (m *ACMEManagerMaker) Provision(ctx caddy.Context) error { |
|
|
// SetDefaults sets necessary values that are
|
|
|
// SetDefaults sets necessary values that are
|
|
|
// currently empty to their default values.
|
|
|
// currently empty to their default values.
|
|
|
func (m *ACMEManagerMaker) SetDefaults() { |
|
|
func (m *ACMEManagerMaker) SetDefaults() { |
|
|
|
|
|
// TODO: Setting all these defaults might not be necessary
|
|
|
|
|
|
// since CertMagic should fill them in for us...
|
|
|
if m.CA == "" { |
|
|
if m.CA == "" { |
|
|
m.CA = certmagic.LetsEncryptStagingCA // certmagic.Default.CA // TODO: When not testing, switch to production CA
|
|
|
m.CA = certmagic.Default.CA |
|
|
} |
|
|
} |
|
|
if m.Email == "" { |
|
|
if m.Email == "" { |
|
|
m.Email = certmagic.Default.Email |
|
|
m.Email = certmagic.Default.Email |
|
|