Ejemplo n.º 1
0
    def test_verify_wrong_form(self):
        from acme.challenges import KeyAuthorizationChallengeResponse

        response = KeyAuthorizationChallengeResponse(
            key_authorization=".foo.oKGqedy-b-acd5eoybm2f-NVFxvyOoET5CNy3xnv8WY"
        )
        self.assertFalse(response.verify(self.chall, KEY.public_key()))
Ejemplo n.º 2
0
 def test_verify_wrong_form(self):
     from acme.challenges import KeyAuthorizationChallengeResponse
     response = KeyAuthorizationChallengeResponse(
         key_authorization='.foo.oKGqedy-b-acd5eoybm2f-'
         'NVFxvyOoET5CNy3xnv8WY')
     self.assertFalse(response.verify(self.chall, KEY.public_key()))
Ejemplo n.º 3
0
 def test_verify_wrong_thumbprint(self):
     from acme.challenges import KeyAuthorizationChallengeResponse
     response = KeyAuthorizationChallengeResponse(
         key_authorization='foo.oKGqedy-b-acd5eoybm2f-NVFxv')
     self.assertFalse(response.verify(self.chall, KEY.public_key()))
Ejemplo n.º 4
0
 def test_verify_wrong_thumbprint(self):
     from acme.challenges import KeyAuthorizationChallengeResponse
     response = KeyAuthorizationChallengeResponse(
         key_authorization='foo.oKGqedy-b-acd5eoybm2f-NVFxv')
     self.assertFalse(response.verify(self.chall, KEY.public_key()))