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
3751896f
Commit
3751896f
authored
Feb 02, 2021
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http.manage: Try to reuse a previously-input passphrase before asking.
parent
88e9b8d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
caucase/http.py
caucase/http.py
+1
-1
No files found.
caucase/http.py
View file @
3751896f
...
@@ -1013,6 +1013,7 @@ def manage(argv=None, stdout=sys.stdout):
...
@@ -1013,6 +1013,7 @@ def manage(argv=None, stdout=sys.stdout):
import_ca_dict
=
defaultdict
(
import_ca_dict
=
defaultdict
(
(
lambda
:
{
'crt'
:
None
,
'key'
:
None
,
'from'
:
[]}),
(
lambda
:
{
'crt'
:
None
,
'key'
:
None
,
'from'
:
[]}),
)
)
password
=
b''
for
import_ca_path
in
args
.
import_ca
:
for
import_ca_path
in
args
.
import_ca
:
with
open
(
import_ca_path
,
'rb'
)
as
ca_file
:
with
open
(
import_ca_path
,
'rb'
)
as
ca_file
:
ca_data
=
ca_file
.
read
()
ca_data
=
ca_file
.
read
()
...
@@ -1025,7 +1026,6 @@ def manage(argv=None, stdout=sys.stdout):
...
@@ -1025,7 +1026,6 @@ def manage(argv=None, stdout=sys.stdout):
_cryptography_backend
,
_cryptography_backend
,
)
)
elif
isinstance
(
component
,
pem
.
Key
):
elif
isinstance
(
component
,
pem
.
Key
):
password
=
None
while
True
:
while
True
:
component_name
=
'key'
component_name
=
'key'
try
:
try
:
...
...
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