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): ...@@ -1142,6 +1142,8 @@ 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:
if os.path.exists(args.export_ca):
parser.error('file exists: %r' % (args.export_ca, ))
while True: while True:
passphrase = getBytePass( passphrase = getBytePass(
'CA export passphrase: ', '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