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
5c6f5670
Commit
5c6f5670
authored
Jul 22, 2017
by
godog
Browse files
set right version value (2) for version 3 certs
see also
e8f12c4b
parent
41ee3024
Changes
1
Hide whitespace changes
Inline
Side-by-side
autoca/certutil.py
View file @
5c6f5670
...
...
@@ -44,7 +44,8 @@ def sign_certificate(req, ca_key, ca_crt, serial_num, days,
cert
.
set_subject
(
req
.
get_subject
())
cert
.
set_pubkey
(
req
.
get_pubkey
())
if
extensions
:
cert
.
set_version
(
3
)
# certificate version 3, not a typo
cert
.
set_version
(
2
)
cert
.
add_extensions
(
extensions
)
cert
.
sign
(
ca_key
,
digest
)
return
cert
...
...
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