mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 22:08:07 -04:00
Don't verify existing certificate in HTTP01Response.simple_verify (certbot#6614)
This commit is contained in:
parent
9671985885
commit
4ca03aec8d
2 changed files with 3 additions and 3 deletions
|
|
@ -308,7 +308,7 @@ class HTTP01Response(KeyAuthorizationChallengeResponse):
|
|||
uri = chall.uri(domain)
|
||||
logger.debug("Verifying %s at %s...", chall.typ, uri)
|
||||
try:
|
||||
http_response = requests.get(uri)
|
||||
http_response = requests.get(uri, verify=False)
|
||||
except requests.exceptions.RequestException as error:
|
||||
logger.error("Unable to reach %s: %s", uri, error)
|
||||
return False
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ class HTTP01ResponseTest(unittest.TestCase):
|
|||
mock_get.return_value = mock.MagicMock(text=validation)
|
||||
self.assertTrue(self.response.simple_verify(
|
||||
self.chall, "local", KEY.public_key()))
|
||||
mock_get.assert_called_once_with(self.chall.uri("local"))
|
||||
mock_get.assert_called_once_with(self.chall.uri("local"), verify=False)
|
||||
|
||||
@mock.patch("acme.challenges.requests.get")
|
||||
def test_simple_verify_bad_validation(self, mock_get):
|
||||
|
|
@ -202,7 +202,7 @@ class HTTP01ResponseTest(unittest.TestCase):
|
|||
HTTP01Response.WHITESPACE_CUTSET))
|
||||
self.assertTrue(self.response.simple_verify(
|
||||
self.chall, "local", KEY.public_key()))
|
||||
mock_get.assert_called_once_with(self.chall.uri("local"))
|
||||
mock_get.assert_called_once_with(self.chall.uri("local"), verify=False)
|
||||
|
||||
@mock.patch("acme.challenges.requests.get")
|
||||
def test_simple_verify_connection_error(self, mock_get):
|
||||
|
|
|
|||
Loading…
Reference in a new issue