Skip to content

Commit ace9372

Browse files
sfc-gh-stakedaankit-bhatnagar167
authored andcommitted
SNOW-101573: support asn1crypto 1.1.x support
1 parent e4221e5 commit ace9372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocsp_asn1crypto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def process_ocsp_response(self, issuer, cert_id, ocsp_response):
313313
raise RevocationCheckError(msg=debug_msg, errno=op_er.errno)
314314

315315
def verify_signature(self, signature_algorithm, signature, cert, data):
316-
pubkey = cert.public_key.unwrap().dump()
316+
pubkey = cert.public_key['public_key'].parsed.dump()
317317
rsakey = RSA.importKey(pubkey)
318318
signer = PKCS1_v1_5.new(rsakey)
319319
if signature_algorithm in SnowflakeOCSPAsn1Crypto.SIGNATURE_ALGORITHM_TO_DIGEST_CLASS:

0 commit comments

Comments
 (0)