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