Browse Source

tls: Use Let's Encrypt production endpoint

We're done testing this in staging
master
Matthew Holt 6 years ago
parent
commit
b4dce74e59
No known key found for this signature in database GPG Key ID: 2A349DD577D586A5
  1. 4
      modules/caddytls/acmemanager.go

4
modules/caddytls/acmemanager.go

@ -102,8 +102,10 @@ func (m *ACMEManagerMaker) Provision(ctx caddy.Context) error {
// SetDefaults sets necessary values that are
// currently empty to their default values.
func (m *ACMEManagerMaker) SetDefaults() {
// TODO: Setting all these defaults might not be necessary
// since CertMagic should fill them in for us...
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 == "" {
m.Email = certmagic.Default.Email

Loading…
Cancel
Save