Skip to content

Commit ad6e858

Browse files
committed
SNOW-27530: AWS SQS Connection causes OCSP error.
1 parent 4ddb00c commit ad6e858

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ocsp_pyopenssl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ def process_ocsp_response(response, ocsp_issuer):
428428
if ex.get_short_name() == b'extendedKeyUsage':
429429
# ensure the purpose is OCSP signing
430430
der_data, _ = der_decoder.decode(ex.get_data())
431-
for d in der_data:
432-
if d == OCSP_SIGNING:
431+
for idx in range(len(der_data)):
432+
if der_data[idx] == OCSP_SIGNING:
433433
is_for_ocsp = True
434434
break
435435
elif ex.get_short_name() == b'noCheck':

test/test_ocsp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def test_ocsp_using_pyopenssl():
4141
ocsp_pyopenssl.OCSP_VALIDATION_CACHE = {} # reset the memory cache
4242
ocsp = ocsp_pyopenssl.SnowflakeOCSP()
4343
urls = [
44+
'sqs.us-west-2.amazonaws.com',
4445
'sfc-dev1-regression.s3.amazonaws.com',
4546
'sfctest0.snowflakecomputing.com',
4647
'sfc-ds2-customer-stage.s3.amazonaws.com',

0 commit comments

Comments
 (0)