Skip to content

Commit 63b562f

Browse files
AniketP04dvora-h
authored andcommitted
Update ocsp.py (#3022)
1 parent 45e858a commit 63b562f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redis/ocsp.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _check_certificate(issuer_cert, ocsp_bytes, validate=True):
6161
)
6262
else:
6363
raise ConnectionError(
64-
"failed to retrieve a sucessful response from the ocsp responder"
64+
"failed to retrieve a successful response from the ocsp responder"
6565
)
6666

6767
if ocsp_response.this_update >= datetime.datetime.now():
@@ -139,7 +139,7 @@ def _get_pubkey_hash(certificate):
139139

140140

141141
def ocsp_staple_verifier(con, ocsp_bytes, expected=None):
142-
"""An implemention of a function for set_ocsp_client_callback in PyOpenSSL.
142+
"""An implementation of a function for set_ocsp_client_callback in PyOpenSSL.
143143
144144
This function validates that the provide ocsp_bytes response is valid,
145145
and matches the expected, stapled responses.
@@ -266,7 +266,7 @@ def build_certificate_url(self, server, cert, issuer_cert):
266266
return url
267267

268268
def check_certificate(self, server, cert, issuer_url):
269-
"""Checks the validitity of an ocsp server for an issuer"""
269+
"""Checks the validity of an ocsp server for an issuer"""
270270

271271
r = requests.get(issuer_url)
272272
if not r.ok:

0 commit comments

Comments
 (0)