Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alain Takoudjou
slapos.toolbox
Commits
07555096
Commit
07555096
authored
Jan 24, 2017
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ca: fix empty parameter on request certificate command
parent
0eff0c1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
slapos/certificate_authority/request.py
slapos/certificate_authority/request.py
+10
-2
slapos/certificate_authority/run.py
slapos/certificate_authority/run.py
+1
-1
No files found.
slapos/certificate_authority/request.py
View file @
07555096
...
@@ -51,12 +51,20 @@ def parseArguments():
...
@@ -51,12 +51,20 @@ def parseArguments():
default
=
'Company Unit'
,
default
=
'Company Unit'
,
help
=
'The Organisation Unit Name'
)
help
=
'The Organisation Unit Name'
)
return
parser
.
parse_args
()
return
parser
def
requestCertificateWeb
():
def
requestCertificateWeb
():
config
=
parseArguments
()
parser
=
parseArguments
()
config
=
parser
.
parse_args
()
if
not
config
.
cn
or
not
config
.
ca_url
:
parser
.
print_help
()
exit
(
1
)
base_dir
=
os
.
path
.
dirname
(
config
.
cert_file
)
os
.
chdir
(
os
.
path
.
abspath
(
base_dir
))
ca
=
CertificateAuthorityRequest
(
config
.
key_file
,
config
.
cert_file
,
ca
=
CertificateAuthorityRequest
(
config
.
key_file
,
config
.
cert_file
,
config
.
ca_cert_file
,
config
.
ca_url
)
config
.
ca_cert_file
,
config
.
ca_url
)
...
...
slapos/certificate_authority/run.py
View file @
07555096
...
@@ -38,7 +38,7 @@ def parseArguments():
...
@@ -38,7 +38,7 @@ def parseArguments():
parser
.
add_argument
(
'--crl_file'
,
parser
.
add_argument
(
'--crl_file'
,
help
=
'Path of Certificate Revocation List file. Default: $crl_dir/cacrl.pem'
)
help
=
'Path of Certificate Revocation List file. Default: $crl_dir/cacrl.pem'
)
parser
.
add_argument
(
'--host'
,
parser
.
add_argument
(
'--host'
,
default
=
[]
,
default
=
'127.0.0.1'
,
help
=
'Host or IP of ca server.'
)
help
=
'Host or IP of ca server.'
)
parser
.
add_argument
(
'--port'
,
parser
.
add_argument
(
'--port'
,
default
=
'9086'
,
default
=
'9086'
,
...
...
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