From d479c6391cb8ecac6402278f71a458a4e6616a8f Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Sat, 20 Feb 2021 18:25:37 -0500 Subject: [PATCH] certificate.Store: Support "*" wildcard pattern --- certificate/store.go | 4 ++++ 1 file changed, 4 insertions(+) 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") }