Add extra check for the cert in the expiration handler.
This commit is contained in:
parent
2b298766c9
commit
0b51afe87a
@ -835,6 +835,10 @@ class XMLStream(object):
|
||||
if not self.use_tls and not self.use_ssl:
|
||||
return
|
||||
|
||||
if not self._der_cert:
|
||||
log.warn("TLS or SSL was enabled, but no certificate was found.")
|
||||
return
|
||||
|
||||
def restart():
|
||||
if not self.event_handled('ssl_expired_cert'):
|
||||
log.warn("The server certificate has expired. Restarting.")
|
||||
|
Loading…
Reference in New Issue
Block a user