mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
use default value for -s argument
This commit is contained in:
parent
93b247c483
commit
b72897677e
1 changed files with 4 additions and 4 deletions
|
|
@ -30,7 +30,8 @@ def main():
|
|||
parser.add_argument("-d", "--domains", dest="domains", metavar="DOMAIN",
|
||||
nargs="+")
|
||||
parser.add_argument("-s", "--server", dest="server",
|
||||
help="The ACME CA server [%s]." % CONFIG.ACME_SERVER)
|
||||
default=CONFIG.ACME_SERVER,
|
||||
help="The ACME CA server. [%(default)s]")
|
||||
parser.add_argument("-p", "--privkey", dest="privkey", type=read_file,
|
||||
help="Path to the private key file for certificate "
|
||||
"generation.")
|
||||
|
|
@ -72,10 +73,9 @@ def main():
|
|||
zope.component.provideUtility(displayer)
|
||||
|
||||
installer = determine_installer()
|
||||
server = CONFIG.ACME_SERVER if args.server is None else args.server
|
||||
|
||||
if args.revoke:
|
||||
revoc = revoker.Revoker(server, installer)
|
||||
revoc = revoker.Revoker(args.server, installer)
|
||||
revoc.list_certs_keys()
|
||||
sys.exit()
|
||||
|
||||
|
|
@ -104,7 +104,7 @@ def main():
|
|||
else:
|
||||
privkey = client.Client.Key(args.privkey[0], args.privkey[1])
|
||||
|
||||
acme = client.Client(server, privkey, auth, installer)
|
||||
acme = client.Client(args.server, privkey, auth, installer)
|
||||
|
||||
# Validate the key and csr
|
||||
client.validate_key_csr(privkey)
|
||||
|
|
|
|||
Loading…
Reference in a new issue