Skip to content

Commit e2ffb0c

Browse files
author
dnita
authored
configure web server to use TLS 1.2 protocol for ssl_context (opsdroid#2014)
1 parent 41246da commit e2ffb0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opsdroid/web.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def get_ssl_context(self):
187187
"""
188188
try:
189189
ssl_config = self.config["ssl"]
190-
sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
190+
sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
191191
sslcontext.load_cert_chain(ssl_config["cert"], ssl_config["key"])
192192
return sslcontext
193193
except FileNotFoundError:

0 commit comments

Comments
 (0)