I have a VPS, to which I have linked my domain.
Also, the flask application, which is available for the domain via http, I created a certificate for the domain and try to use it:
import ssl
from app import create_app
from config import Config
app = create_app(Config)
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
context.verify_mode = ssl.CERT_REQUIRED
context.load_verify_locations("ca_bundle.crt")
context.load_cert_chain("certificate.crt", "private.key")
if __name__ == '__main__':
app.run(host='0.0.0.0', port=80, ssl_context=context)
But after I use the certificate the site stops loading.
Do I have to do something else?