Skip to content
Snippets Groups Projects
Commit 496d44fc authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

Merge branch 'f-ssl-warning-stderr' into 'dev'

ENH: Print "insecure ssl" warning to stderr.

See merge request caosdb/caosdb-pylib!9
parents 2f0ec24e 4bc8fba7
No related branches found
No related tags found
No related merge requests found
...@@ -172,7 +172,7 @@ class _DefaultCaosDBServerConnection(CaosDBServerConnection): ...@@ -172,7 +172,7 @@ class _DefaultCaosDBServerConnection(CaosDBServerConnection):
print("*** Warning! ***\n" print("*** Warning! ***\n"
"Insecure SSL mode, certificate will not be checked! " "Insecure SSL mode, certificate will not be checked! "
"Please consider removing the `ssl_insecure` configuration option.\n" "Please consider removing the `ssl_insecure` configuration option.\n"
"****************") "****************", file=sys.stderr)
context.verify_mode = ssl.CERT_NONE context.verify_mode = ssl.CERT_NONE
if (not context.verify_mode == ssl.CERT_NONE and if (not context.verify_mode == ssl.CERT_NONE and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment