mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
Fix deploy cert and TLSSNI check
This commit is contained in:
@@ -47,8 +47,6 @@ def test_authenticator(plugin, config, temp_dir):
|
|||||||
"challenge types")
|
"challenge types")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
import ipdb
|
|
||||||
ipdb.set_trace()
|
|
||||||
try:
|
try:
|
||||||
responses = plugin.perform(achalls)
|
responses = plugin.perform(achalls)
|
||||||
except le_errors.Error as error:
|
except le_errors.Error as error:
|
||||||
@@ -63,7 +61,7 @@ def test_authenticator(plugin, config, temp_dir):
|
|||||||
"Plugin failed to complete %s for %s in %s",
|
"Plugin failed to complete %s for %s in %s",
|
||||||
type(achalls[i]), achalls[i].domain, config)
|
type(achalls[i]), achalls[i].domain, config)
|
||||||
success = False
|
success = False
|
||||||
elif isinstance(responses[i], challenges.TLSSNI01):
|
elif isinstance(responses[i], challenges.TLSSNI01Response):
|
||||||
verify = functools.partial(responses[i].simple_verify, achalls[i],
|
verify = functools.partial(responses[i].simple_verify, achalls[i],
|
||||||
achalls[i].domain,
|
achalls[i].domain,
|
||||||
util.JWK.public_key(),
|
util.JWK.public_key(),
|
||||||
@@ -144,7 +142,7 @@ def test_deploy_cert(plugin, temp_dir, domains):
|
|||||||
|
|
||||||
for domain in domains:
|
for domain in domains:
|
||||||
try:
|
try:
|
||||||
plugin.deploy_cert(domain, cert_path, util.KEY_PATH)
|
plugin.deploy_cert(domain, cert_path, util.KEY_PATH, cert_path)
|
||||||
except le_errors.Error as error:
|
except le_errors.Error as error:
|
||||||
logger.error("Plugin failed to deploy ceritificate for %s:", domain)
|
logger.error("Plugin failed to deploy ceritificate for %s:", domain)
|
||||||
logger.exception(error)
|
logger.exception(error)
|
||||||
|
|||||||
Reference in New Issue
Block a user