Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
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
Vincent Pelletier
caucase
Commits
88e9b8d0
Commit
88e9b8d0
authored
4 years ago
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http.manage: Fix passphrase prompt caption in --import-ca .
parent
3f04238d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
caucase/http.py
caucase/http.py
+3
-3
No files found.
caucase/http.py
View file @
88e9b8d0
...
...
@@ -1013,11 +1013,11 @@ def manage(argv=None, stdout=sys.stdout):
import_ca_dict
=
defaultdict
(
(
lambda
:
{
'crt'
:
None
,
'key'
:
None
,
'from'
:
[]}),
)
for
import_ca
in
args
.
import_ca
:
with
open
(
import_ca
,
'rb'
)
as
ca_file
:
for
import_ca
_path
in
args
.
import_ca
:
with
open
(
import_ca
_path
,
'rb'
)
as
ca_file
:
ca_data
=
ca_file
.
read
()
for
index
,
component
in
enumerate
(
pem
.
parse
(
ca_data
)):
name
=
'%r, block %i'
%
(
import_ca
,
index
)
name
=
'%r, block %i'
%
(
import_ca
_path
,
index
)
if
isinstance
(
component
,
pem
.
Certificate
):
component_name
=
'crt'
component_value
=
x509
.
load_pem_x509_certificate
(
...
...
This diff is collapsed.
Click to expand it.
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