diff --git a/certificate/store.go b/certificate/store.go index 09f6cec..d4d48ce 100644 --- a/certificate/store.go +++ b/certificate/store.go @@ -89,6 +89,10 @@ func (s *Store) GetCertificate(scope string) (*tls.Certificate, error) { cert, ok = s.Lookup("*." + wildcard[1]) } } + if !ok { + // Try "*" + _, ok = s.Lookup("*") + } if !ok { return nil, errors.New("unrecognized scope") }