Commit 7a7d0383 authored by Vincent Pelletier's avatar Vincent Pelletier

http.manage: Avoid overwriting an existing file with --export-ca.

parent 3de956d3
......@@ -1142,6 +1142,8 @@ def manage(argv=None, stdout=sys.stdout):
file=stdout,
)
if args.export_ca is not None:
if os.path.exists(args.export_ca):
parser.error('file exists: %r' % (args.export_ca, ))
while True:
passphrase = getBytePass(
'CA export passphrase: ',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment