Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
5727c7a2
Commit
5727c7a2
authored
Jun 24, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some verification flags suggested by Julien Muchembled
parent
fdfc9245
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/ZEO/zconfig.py
src/ZEO/zconfig.py
+5
-0
No files found.
src/ZEO/zconfig.py
View file @
5727c7a2
"""SSL configuration support
"""SSL configuration support
"""
"""
import
os
import
os
import
sys
def
ssl_config
(
section
,
server
):
def
ssl_config
(
section
,
server
):
import
ssl
import
ssl
...
@@ -26,6 +27,10 @@ def ssl_config(section, server):
...
@@ -26,6 +27,10 @@ def ssl_config(section, server):
context
.
verify_mode
=
ssl
.
CERT_REQUIRED
context
.
verify_mode
=
ssl
.
CERT_REQUIRED
if
sys
.
version_info
>=
(
3
,
4
):
context
.
verify_flags
|=
ssl
.
VERIFY_X509_STRICT
|
(
context
.
cert_store_stats
()[
'crl'
]
and
ssl
.
VERIFY_CRL_CHECK_LEAF
)
if
server
:
if
server
:
context
.
check_hostname
=
False
context
.
check_hostname
=
False
return
context
return
context
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment