Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai
autoca
Commits
9a790c66
Commit
9a790c66
authored
Jul 14, 2017
by
ale
Browse files
Add digest field for crl exports
parent
e9c1cb5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
autoca/ca.py
View file @
9a790c66
...
...
@@ -133,7 +133,8 @@ class CA(object):
time
.
strftime
(
'%Y%m%d%H%M%SZ'
,
time
.
gmtime
(
stamp
)))
crl
.
add_revoked
(
revoked
)
self
.
storage
.
set_crl
(
crl
.
export
(
self
.
ca_crt
,
self
.
ca_key
,
crypto
.
FILETYPE_PEM
,
30
))
crl
.
export
(
self
.
ca_crt
,
self
.
ca_key
,
crypto
.
FILETYPE_PEM
,
30
,
digest
=
'sha256'
))
self
.
_load_crl
()
def
_load_crl
(
self
):
...
...
@@ -142,7 +143,8 @@ class CA(object):
# Create an empty CRL.
crl
=
crypto
.
CRL
()
self
.
crl_data_pem
=
crl
.
export
(
self
.
ca_crt
,
self
.
ca_key
,
crypto
.
FILETYPE_PEM
,
30
)
crypto
.
FILETYPE_PEM
,
30
,
digest
=
'sha256'
)
self
.
storage
.
set_crl
(
self
.
crl_data_pem
)
# Re-read the CRL data in DER and PEM formats.
...
...
Write
Preview
Supports
Markdown
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