feat: add support for staging let's encrypt env

This commit is contained in:
ptrcnull 2024-08-10 21:17:05 +02:00
parent f7ef3c7c47
commit d2570641ad

View file

@ -21,6 +21,7 @@ def main() -> None:
)
parser.add_argument('-c', '--config', help='path to your config file', default='/etc/nyacme.toml')
parser.add_argument('-o', '--output', help='path to the certificate output directory', default='/etc/ssl/uacme')
parser.add_argument('-s', '--staging', help='use staging letsencrypt acme server', default=False, action='store_true')
args = parser.parse_args()
config = read_config(args.config)
@ -62,6 +63,7 @@ def main() -> None:
'--confdir', args.output,
'-b', '384',
'--type', 'EC',
*(['--staging'] if args.staging else []),
# '--force',
'issue',
*uacme_domains,