X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Futil%2Fssl.py;h=bb24823bf5d50d50e4d1a25fb6892e97424b2117;hb=refs%2Fheads%2Fpython3;hp=6ecf8d48939da80e511f45c86980686396a204d2;hpb=f71aba8ed6780482dd3ab0bdb9d3c4727b05435d;p=sfa.git diff --git a/sfa/util/ssl.py b/sfa/util/ssl.py index 6ecf8d48..bb24823b 100644 --- a/sfa/util/ssl.py +++ b/sfa/util/ssl.py @@ -3,6 +3,10 @@ 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