git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NOT YET WORKING
[sfa.git]
/
sfa
/
util
/
ssl.py
diff --git
a/sfa/util/ssl.py
b/sfa/util/ssl.py
index
6ecf8d4
..
bb24823
100644
(file)
--- 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
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
"""
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS)
ssl_context.verify_mode = ssl.CERT_NONE