Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cam
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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