diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-04-03 10:51:43 +0100 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-04-03 10:57:18 +0100 |
commit | 1fd5680496586f8d4ab3d902aa629f13ce0bde25 (patch) | |
tree | fc192bbe4688381f132123ca020556434a5462bf | |
parent | Remove turning cert validation off from faq (diff) | |
download | synapse-1fd5680496586f8d4ab3d902aa629f13ce0bde25.tar.xz |
Don't laugh at my own jokes
-rw-r--r-- | synapse/config/tls.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/config/tls.py b/synapse/config/tls.py index 05b6a6165f..dbfeb236e4 100644 --- a/synapse/config/tls.py +++ b/synapse/config/tls.py @@ -100,7 +100,7 @@ class TlsConfig(Config): with open(ca_file, 'rb') as f: content = f.read() except Exception: - logger.fatal("Failed to read custom CA certificate off disk!") + logger.fatal("Failed to read custom CA certificate off disk") raise # Parse the CA certificates @@ -108,7 +108,7 @@ class TlsConfig(Config): cert_base = Certificate.loadPEM(content) certs.append(cert_base) except Exception: - logger.fatal("Failed to parse custom CA certificate off disk!") + logger.fatal("Failed to parse custom CA certificate off disk") raise self.federation_custom_ca_list = trustRootFromCertificates(certs) @@ -143,12 +143,12 @@ class TlsConfig(Config): with open(self.tls_certificate_file, 'rb') as f: cert_pem = f.read() except Exception: - logger.fatal("Failed to read existing certificate off disk!") + logger.fatal("Failed to read existing certificate off disk") try: tls_certificate = crypto.load_certificate(crypto.FILETYPE_PEM, cert_pem) except Exception: - logger.fatal("Failed to parse existing certificate off disk!") + logger.fatal("Failed to parse existing certificate off disk") if not allow_self_signed: if tls_certificate.get_subject() == tls_certificate.get_issuer(): |