Skip to content

Commit

Permalink
Update ocsp.py (#3022)
Browse files Browse the repository at this point in the history
  • Loading branch information
AniketP04 committed Nov 29, 2023
1 parent 8875d55 commit 58da813
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions redis/ocsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _check_certificate(issuer_cert, ocsp_bytes, validate=True):
)
else:
raise ConnectionError(
"failed to retrieve a sucessful response from the ocsp responder"
"failed to retrieve a successful response from the ocsp responder"
)

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


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

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

r = requests.get(issuer_url)
if not r.ok:
Expand Down

0 comments on commit 58da813

Please sign in to comment.