import ssl def simple_ssl_context(): """ an SSL context that turns off server verification this is intended for clients that need to talk to parts of the infra that are known to not have a proper certificate in place, like typically MyPLC and manifold services """ ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS) ssl_context.verify_mode = ssl.CERT_NONE return ssl_context