Skip to content
Snippets Groups Projects
Commit 574f6012 authored by ale's avatar ale
Browse files

Add license

parent 0cba5f55
Branches
No related tags found
No related merge requests found
*.egg-info
*.pyc
MANIFEST
.tox
LICENSE 0 → 100644
This diff is collapsed.
......@@ -115,9 +115,9 @@ def serve_ssl(app, host='localhost', port=3000, **kwargs):
# Create a validating SSLContext.
ssl_ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
ssl_ctx.set_ciphers('ECDHE-ECDSA-AES256-GCM-SHA384')
ssl_ctx.load_cert_chain(certfile='server.crt',
keyfile='server.key')
ssl_ctx.load_verify_locations(cafile='ca.crt')
ssl_ctx.load_cert_chain(certfile=app.config['SSL_CERT'],
keyfile=app.config['SSL_KEY'])
ssl_ctx.load_verify_locations(cafile=app.config['SSL_CA'])
ssl_ctx.verify_mode = ssl.CERT_REQUIRED
app.run(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment