From 9d63fb73a26383eba23a4d1050cf2d3589db0cfb Mon Sep 17 00:00:00 2001 From: Ron Frederick Date: Tue, 1 Oct 2024 18:38:43 -0700 Subject: [PATCH] Disable PKCS11 unit tests which use SHA-1 signatures --- tests/test_pkcs11.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_pkcs11.py b/tests/test_pkcs11.py index 40445061..bacf05c4 100644 --- a/tests/test_pkcs11.py +++ b/tests/test_pkcs11.py @@ -165,6 +165,10 @@ async def test_pkcs11_load_keys(self): for sig_alg in key.sig_algorithms: sig_alg = sig_alg.decode('ascii') + # Disable unit tests that involve SHA-1 hashes + if sig_alg in ('ssh-rsa', 'x509v3-ssh-rsa'): + continue + with self.subTest(key=key.get_comment(), sig_alg=sig_alg): async with self.connect( username='ckey', pkcs11_provider='xxx',