start_rsa

This commit is contained in:
vSpaike 2025-01-21 11:41:04 +01:00
parent 906a9ecb61
commit 07f9744a14
14 changed files with 188 additions and 0 deletions

16
RSA/server/__init__.py Normal file
View 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)