Add extra check for the cert in the expiration handler.
This commit is contained in:
parent
8567d6034f
commit
6cfb5cb14c
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue