Modify DEBUG messages to get ACME certificates
This commit is contained in:
parent
044d87d96d
commit
d0f3ad6024
2 changed files with 3 additions and 3 deletions
|
@ -351,7 +351,7 @@ func (a *ACME) getCertificate(clientHello *tls.ClientHelloInfo) (*tls.Certificat
|
||||||
}
|
}
|
||||||
return a.loadCertificateOnDemand(clientHello)
|
return a.loadCertificateOnDemand(clientHello)
|
||||||
}
|
}
|
||||||
log.Debugf("ACME got nothing %s", domain)
|
log.Debugf("No certificate found or generated for %s", domain)
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -623,7 +623,7 @@ func (a *ACME) LoadCertificateForDomains(domains []string) {
|
||||||
// Get provided certificate which check a domains list (Main and SANs)
|
// Get provided certificate which check a domains list (Main and SANs)
|
||||||
// from static and dynamic provided certificates
|
// from static and dynamic provided certificates
|
||||||
func (a *ACME) getProvidedCertificate(domains []string) *tls.Certificate {
|
func (a *ACME) getProvidedCertificate(domains []string) *tls.Certificate {
|
||||||
log.Debugf("Look for provided certificate to validate %s...", domains)
|
log.Debugf("Looking for provided certificate to validate %s...", domains)
|
||||||
cert := searchProvidedCertificateForDomains(domains, a.TLSConfig.NameToCertificate)
|
cert := searchProvidedCertificateForDomains(domains, a.TLSConfig.NameToCertificate)
|
||||||
if cert == nil && a.dynamicCerts != nil && a.dynamicCerts.Get() != nil {
|
if cert == nil && a.dynamicCerts != nil && a.dynamicCerts.Get() != nil {
|
||||||
cert = searchProvidedCertificateForDomains(domains, a.dynamicCerts.Get().(*traefikTls.DomainsCertificates).Get().(map[string]*tls.Certificate))
|
cert = searchProvidedCertificateForDomains(domains, a.dynamicCerts.Get().(*traefikTls.DomainsCertificates).Get().(map[string]*tls.Certificate))
|
||||||
|
|
|
@ -31,7 +31,7 @@ type challengeProvider struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *challengeProvider) getCertificate(domain string) (cert *tls.Certificate, exists bool) {
|
func (c *challengeProvider) getCertificate(domain string) (cert *tls.Certificate, exists bool) {
|
||||||
log.Debugf("Challenge GetCertificate %s", domain)
|
log.Debugf("Looking for an existing ACME challenge for %s...", domain)
|
||||||
if !strings.HasSuffix(domain, ".acme.invalid") {
|
if !strings.HasSuffix(domain, ".acme.invalid") {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue