mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 08:42:57 -04:00
Import names from Apache
This commit is contained in:
parent
a65fb0d35a
commit
7feab30e72
1 changed files with 3 additions and 3 deletions
|
|
@ -197,10 +197,12 @@ def authenticate():
|
|||
assert is_hostname_sane(server), `server` + " is an impossible hostname"
|
||||
|
||||
upstream = "https://%s/chocolate.py" % server
|
||||
config = configurator.Configurator()
|
||||
|
||||
if not names:
|
||||
# TODO: automatically import names from Apache config
|
||||
names = ["example.com", "www.example.com", "foo.example.com"]
|
||||
#names = ["example.com", "www.example.com", "foo.example.com"]
|
||||
names = config.get_all_names()
|
||||
|
||||
if curses:
|
||||
names = filter_names(names)
|
||||
|
|
@ -262,8 +264,6 @@ def authenticate():
|
|||
|
||||
if not curses: print sni_todo
|
||||
|
||||
config = configurator.Configurator()
|
||||
config.get_virtual_hosts()
|
||||
vhost = set()
|
||||
for name in dn:
|
||||
host = config.choose_virtual_host(name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue