NOT YET WORKING
[sfa.git] / sfa / util / ssl.py
1 import ssl
2
3 def simple_ssl_context():
4     """
5     an SSL context that turns off server verification
6     this is intended for clients that need to talk
7     to parts of the infra that are known to not have
8     a proper certificate in place, like typically
9     MyPLC and manifold services
10     """
11     ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS)
12     ssl_context.verify_mode = ssl.CERT_NONE
13     return ssl_context