From 8046217057a91c5b011d58a23d65f1e450f3b4bf Mon Sep 17 00:00:00 2001 From: Aniket Patil <128228805+AniketP04@users.noreply.github.com> Date: Tue, 24 Oct 2023 07:58:20 +0530 Subject: [PATCH] Update ocsp.py --- redis/ocsp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/redis/ocsp.py b/redis/ocsp.py index b0420b4711..8819848fa9 100644 --- a/redis/ocsp.py +++ b/redis/ocsp.py @@ -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(): @@ -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. @@ -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: