mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
if CHOCOLATESERVER is unspecified, use ca.theobroma.info
This commit is contained in:
parent
f92d8e7b11
commit
966181d52e
1 changed files with 3 additions and 1 deletions
|
|
@ -220,9 +220,11 @@ def authenticate():
|
|||
TODO: This should be turned into a class...
|
||||
"""
|
||||
global server, names, csr, privkey
|
||||
assert server or "CHOCOLATESERVER" in os.environ, "Must specify server via command line or CHOCOLATESERVER environment variable."
|
||||
if "CHOCOLATESERVER" in os.environ:
|
||||
server = os.environ["CHOCOLATESERVER"]
|
||||
if not server:
|
||||
# Global default value for Chocolate server!
|
||||
server = "ca.theobroma.info"
|
||||
|
||||
assert is_hostname_sane(server), `server` + " is an impossible hostname"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue