diff options
author | Matthew Hodgson <matthew@matrix.org> | 2015-07-08 21:33:02 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2015-07-08 21:33:02 +0100 |
commit | f26a3df1bf6cabee28f5f91778082c0f26b2378c (patch) | |
tree | 18dda432ac4e524ce1380446882dcbb9057a81a3 /synapse/crypto/context_factory.py | |
parent | typo (diff) | |
download | synapse-f26a3df1bf6cabee28f5f91778082c0f26b2378c.tar.xz |
oops, context.tls_certificate_chain_file() expects a file, not a certificate.
Diffstat (limited to 'synapse/crypto/context_factory.py')
-rw-r--r-- | synapse/crypto/context_factory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/crypto/context_factory.py b/synapse/crypto/context_factory.py index 324dc31fe4..d515007ca0 100644 --- a/synapse/crypto/context_factory.py +++ b/synapse/crypto/context_factory.py @@ -38,8 +38,8 @@ class ServerContextFactory(ssl.ContextFactory): logger.exception("Failed to enable elliptic curve for TLS") context.set_options(SSL.OP_NO_SSLv2 | SSL.OP_NO_SSLv3) context.use_certificate(config.tls_certificate) - if config.tls_certificate_chain: - context.use_certificate_chain_file(config.tls_certificate_chain) + if config.tls_certificate_chain_file: + context.use_certificate_chain_file(config.tls_certificate_chain_file) if not config.no_tls: context.use_privatekey(config.tls_private_key) |