mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
--dvsni-port -> --tls-sni-01-port
This commit is contained in:
@@ -183,7 +183,7 @@ class Authenticator(common.Plugin):
|
||||
if challenges.HTTP01 in self.supported_challenges:
|
||||
necessary_ports.add(self.config.http01_port)
|
||||
if challenges.TLSSNI01 in self.supported_challenges:
|
||||
necessary_ports.add(self.config.dvsni_port)
|
||||
necessary_ports.add(self.config.tls_sni_01_port)
|
||||
return necessary_ports
|
||||
|
||||
def more_info(self): # pylint: disable=missing-docstring
|
||||
@@ -243,7 +243,7 @@ class Authenticator(common.Plugin):
|
||||
validation=validation))
|
||||
else: # tls-sni-01
|
||||
server = self.servers.run(
|
||||
self.config.dvsni_port, challenges.TLSSNI01)
|
||||
self.config.tls_sni_01_port, challenges.TLSSNI01)
|
||||
response, (cert, _) = achall.response_and_validation(
|
||||
cert_key=self.key)
|
||||
self.certs[response.z_domain] = (self.key, cert)
|
||||
|
||||
@@ -92,7 +92,7 @@ class AuthenticatorTest(unittest.TestCase):
|
||||
def setUp(self):
|
||||
from letsencrypt.plugins.standalone import Authenticator
|
||||
self.config = mock.MagicMock(
|
||||
dvsni_port=1234, http01_port=4321,
|
||||
tls_sni_01_port=1234, http01_port=4321,
|
||||
standalone_supported_challenges="tls-sni-01,http-01")
|
||||
self.auth = Authenticator(self.config, name="standalone")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user