Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
caucase
Commits
72920cbe
Commit
72920cbe
authored
Oct 20, 2017
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Require cryptography 2.1.1 or later.
Allows enforcing CRL signature checking.
parent
c66a652d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
caucase/utils.py
caucase/utils.py
+1
-2
setup.py
setup.py
+1
-1
No files found.
caucase/utils.py
View file @
72920cbe
...
...
@@ -372,8 +372,7 @@ def load_crl(data, trusted_cert_list):
"""
crl
=
x509
.
load_pem_x509_crl
(
data
,
_cryptography_backend
)
for
cert
in
trusted_cert_list
:
# TODO: make mandatory when next cryptography version is released
if
getattr
(
crl
,
'is_signature_valid'
,
lambda
x
:
True
)(
cert
.
public_key
()):
if
crl
.
is_signature_valid
(
cert
.
public_key
()):
return
crl
raise
cryptography
.
exceptions
.
InvalidSignature
...
...
setup.py
View file @
72920cbe
...
...
@@ -45,7 +45,7 @@ setup(
license
=
'GPLv3+'
,
packages
=
find_packages
(),
install_requires
=
[
'cryptography'
,
# everything x509 except...
'cryptography
>=2.1.1
'
,
# everything x509 except...
'pyOpenSSL>=17.1.0'
,
# ...certificate chain validation
'pem>=17.1.0'
,
# Parse PEM files
],
...
...
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