start_rsa
This commit is contained in:
parent
906a9ecb61
commit
07f9744a14
14 changed files with 188 additions and 0 deletions
16
RSA/server/__init__.py
Normal file
16
RSA/server/__init__.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
import ssl
|
||||
from flask import *
|
||||
import flask_wtf as wtf
|
||||
|
||||
print(ssl.OPENSSL_VERSION)
|
||||
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
|
||||
context.load_cert_chain(certfile='ssl/CA.crt', keyfile='ssl/CA.key')
|
||||
|
||||
app= Flask(__name__)
|
||||
|
||||
@app.route("/")
|
||||
def index():
|
||||
return render_template("index.html")
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(ssl_context=context)
|
Loading…
Add table
Add a link
Reference in a new issue