I am trying to get my Flask Peewee app to work over SSL I purchased an SSL cert and proved it was good by installing it under Apache.
I copied the code from the docs as follows:
from OpenSSL import SSL
context = SSL.Context(SSL.SSLv3_METHOD)
context.use_privatekey_file('/etc/ssl/ssl.key/private.key')
context.use_certificate_file('/etc/ssl/ssl.crt/secure_enclude_ie.crt')
app.run(host='0.0.0.0',port=5001,debug=True,ssl_context=context)
When I run the app and check the response to a REST request, it looks fine in Firefox, but when I test it using the SSL tester at Digicert.com, it says the SSL cert is untrusted because it is not signed by a trusted authority.
Trying this in Salesforce (which is the point of the excercise), gives me a similar result. I am assuming that I need some way to tell Flask where the root certs are on my server. Any ideas?