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
Boxiang Sun
caucase
Commits
3de956d3
Commit
3de956d3
authored
Feb 02, 2021
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http.manage: Ask passphrase twice during --export-ca.
parent
c2aa954a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
caucase/http.py
caucase/http.py
+10
-3
No files found.
caucase/http.py
View file @
3de956d3
...
@@ -1142,9 +1142,16 @@ def manage(argv=None, stdout=sys.stdout):
...
@@ -1142,9 +1142,16 @@ def manage(argv=None, stdout=sys.stdout):
file
=
stdout
,
file
=
stdout
,
)
)
if
args
.
export_ca
is
not
None
:
if
args
.
export_ca
is
not
None
:
encryption_algorithm
=
serialization
.
BestAvailableEncryption
(
while
True
:
getBytePass
(
'CA export passphrase: '
)
passphrase
=
getBytePass
(
)
'CA export passphrase: '
,
)
if
getBytePass
(
' (again): '
,
)
==
passphrase
:
break
print
(
'Error: Input does not match, retrying'
)
encryption_algorithm
=
serialization
.
BestAvailableEncryption
(
passphrase
)
with
open
(
args
.
export_ca
,
'wb'
)
as
export_ca_file
:
with
open
(
args
.
export_ca
,
'wb'
)
as
export_ca_file
:
write
=
export_ca_file
.
write
write
=
export_ca_file
.
write
for
key_pair
in
SQLite3Storage
(
for
key_pair
in
SQLite3Storage
(
...
...
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