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
cam
Commits
2397de7d
Commit
2397de7d
authored
Dec 29, 2013
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow specifying nsCertType in config
parent
ad5c70b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cam/ca.py
cam/ca.py
+1
-1
cam/templates/ext_config
cam/templates/ext_config
+1
-1
No files found.
cam/ca.py
View file @
2397de7d
...
...
@@ -169,7 +169,7 @@ class CA(object):
csr_file
=
os
.
path
.
join
(
tmpdir
,
'%s.csr'
%
cert
.
name
)
conf_file
=
os
.
path
.
join
(
tmpdir
,
'%s.conf'
%
cert
.
name
)
ext_file
=
os
.
path
.
join
(
tmpdir
,
'%s-ext.conf'
%
cert
.
name
)
conf
=
{}
conf
=
{
'usage'
:
'client, server'
}
conf
.
update
(
self
.
config
)
conf
[
'cn'
]
=
cert
.
cn
conf
[
'days'
]
=
cert
.
days
or
self
.
config
[
'default_days'
]
...
...
cam/templates/ext_config
View file @
2397de7d
basicConstraints = CA:false
nsCertType =
client, server
nsCertType =
%(usage)s
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
extendedKeyUsage = clientAuth, serverAuth
subjectKeyIdentifier = hash
...
...
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