Skip to content
Snippets Groups Projects
Commit ce9f63bf authored by Julian's avatar Julian
Browse files

enabled ssl in run.py for webauthn testing

parent 1eee78db
No related branches found
No related tags found
No related merge requests found
......@@ -147,3 +147,7 @@ Sessionx.vim
tags
# Persistent undo
[._]*.un~
# Auto-generated development key/certificate
devcert.crt
devcert.key
#!/usr/bin/env python3
from werkzeug.serving import make_ssl_devcert
from uffd import *
if __name__ == '__main__':
app = create_app()
init_db(app)
print(app.url_map)
app.run(threaded=True, debug=True)
if not os.path.exists('devcert.crt') or not os.path.exists('devcert.key'):
make_ssl_devcert('devcert')
# WebAuthn requires https and a hostname (not just an IP address). If you
# don't want to test U2F/FIDO2 device registration/authorization, you can
# safely remove `host` and `ssl_context`.
app.run(threaded=True, debug=True, host='localhost', ssl_context=('devcert.crt', 'devcert.key'))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment