diff options
author | rsiddharth <s@ricketyspace.net> | 2020-04-12 12:45:15 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2020-04-12 12:45:15 -0400 |
commit | 2b7521c7f124aad3396119c7d81c4797b5c2b9b4 (patch) | |
tree | 154499bca3ffd220a5f432aa0262de6cc5d7a59c /acmens.py | |
parent | b30e94d971dfade1c3b5ffa231ab2a2b472700db (diff) |
acmens.py: Update arguments to acmens.py
Now CSR path needs to be given via the --csr switch.
Diffstat (limited to 'acmens.py')
-rw-r--r-- | acmens.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -247,9 +247,13 @@ $ python3 acmens.py --account-key user.key --email user@example.com domain.csr > """) parser.add_argument("-k", "--account-key", required=True, help="path to your Let's Encrypt account private key") parser.add_argument("-e", "--email", default=None, help="contact email, default is webmaster@<shortest_domain>") - parser.add_argument("csr_path", help="path to your certificate signing request") + parser.add_argument("--csr", help="path to your certificate signing request") args = parser.parse_args() - signed_crt = sign_csr(args.account_key, args.csr_path, email=args.email) + if args.csr is None: + sys.stderr.write('Error: Path to CSR required\n') + sys.exit(1) + + signed_crt = sign_csr(args.account_key, args.csr, email=args.email) sys.stdout.write(signed_crt) |