Hello all,
I have a linux server (AWS Linux V2) running flask with the following code:
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
context.verify_mode = ssl.CERT_REQUIRED
context.load_verify_locations('./web.pem')
context.load_cert_chain('./web.crt', './web.key')
app.run('0.0.0.0', 8443, ssl_context=context)
when i run it there’s the following error:
ssl.SSLError: [X509: KEY_VALUES_MISMATCH] key values mismatch (_ssl.c:3901)
i used the next steps to create the SSL files:
- for the web.crt i download the CF RSA version from here
- i created new certificates (web.key & web.pem) from CF SSL/TLS>Origin Server>Create Certificate
can someone pls point me for what i’m missing here?
many thanks in advance!
Ram