feat: add support for staging let's encrypt env
This commit is contained in:
parent
f7ef3c7c47
commit
d2570641ad
1 changed files with 2 additions and 0 deletions
|
@ -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('-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('-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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
config = read_config(args.config)
|
config = read_config(args.config)
|
||||||
|
@ -62,6 +63,7 @@ def main() -> None:
|
||||||
'--confdir', args.output,
|
'--confdir', args.output,
|
||||||
'-b', '384',
|
'-b', '384',
|
||||||
'--type', 'EC',
|
'--type', 'EC',
|
||||||
|
*(['--staging'] if args.staging else []),
|
||||||
# '--force',
|
# '--force',
|
||||||
'issue',
|
'issue',
|
||||||
*uacme_domains,
|
*uacme_domains,
|
||||||
|
|
Loading…
Reference in a new issue