Skip to content

Commit 3c11e2b

Browse files
author
Peter Wilhelmsson
authored
Merge pull request #476 from neo4j/windows-system-cas-4.2
Proper initialization of system CAs on Windows
2 parents 0e3c015 + 93fe662 commit 3c11e2b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

neo4j/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,10 @@ def get_ssl_context(self):
261261
ssl_context.check_hostname = False
262262
ssl_context.verify_mode = ssl.CERT_NONE # https://docs.python.org/3.5/library/ssl.html#ssl.CERT_NONE
263263

264-
ssl_context.set_default_verify_paths() # https://docs.python.org/3.5/library/ssl.html#ssl.SSLContext.set_default_verify_paths
264+
# Must be load_default_certs, not set_default_verify_paths to work
265+
# on Windows with system CAs.
266+
ssl_context.load_default_certs()
267+
265268
return ssl_context
266269

267270

0 commit comments

Comments
 (0)