3 def simple_ssl_context():
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
11 ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS)
12 ssl_context.verify_mode = ssl.CERT_NONE