Skip to content

Commit

Permalink
Fixed unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jul 31, 2019
1 parent c3cccd4 commit 5c30679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/netius/test/base/tls.py
Expand Up @@ -46,11 +46,11 @@ class TLSTest(unittest.TestCase):
def test_fingerprint(self):
key_der = netius.common.open_pem_key(netius.SSL_KEY_PATH)
result = netius.fingerprint(key_der)
self.assertEqual(result, "07a55ee5f6798c58000541dc66ab5f5519292aed")
self.assertEqual(result, "5b4e55fa5ba652a9cb0c3be2dcfa303b5ae647d6")

cer_der = netius.common.open_pem_key(netius.SSL_CER_PATH, token = "CERTIFICATE")
result = netius.fingerprint(cer_der)
self.assertEqual(result, "5ccc67c8b27bc8f5d7c268d05ac5a284f549420b")
self.assertEqual(result, "55ed3769f523281134d87393ffda7f78c9dff786")

def test_match_hostname(self):
certificate = dict(
Expand Down

0 comments on commit 5c30679

Please sign in to comment.