Example #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()))
Example #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()))
Example #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()))
 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()))