internal: failback with self-signed cert if cert for tenant fails to load
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
d56ddb16b1
commit
ece0429ea8
|
@ -78,5 +78,8 @@ func (w *Watcher) GetCertificate(ch *tls.ClientHelloInfo) (*tls.Certificate, err
|
|||
return w.fallback, nil
|
||||
}
|
||||
cert := w.cs.Get(*bestSelection.WebCertificate.Get())
|
||||
if cert == nil {
|
||||
return w.fallback, nil
|
||||
}
|
||||
return cert, nil
|
||||
}
|
||||
|
|
Reference in New Issue