From 5b59455bef4a874a065618ae8dcfd1c4789cde2f Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Thu, 30 Sep 2021 16:34:22 -0400 Subject: [PATCH] chore: fix spelling --- checkcert/checkcert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/checkcert/checkcert.py b/checkcert/checkcert.py index 16e378a..9fc4d9c 100644 --- a/checkcert/checkcert.py +++ b/checkcert/checkcert.py @@ -18,7 +18,7 @@ HostInfo = namedtuple( def get_certificate(hostname, port): - """retreive certificate details and return HostInfo tuple of values""" + """retrieve certificate details and return HostInfo tuple of values""" hostname_idna = idna.encode(hostname) sock = socket() @@ -45,7 +45,7 @@ def get_certificate(hostname, port): def get_alt_names(cert): - """retreive the SAN values for given cert""" + """retrieve the SAN values for given cert""" try: ext = cert.extensions.get_extension_for_class(x509.SubjectAlternativeName) return ext.value.get_values_for_type(x509.DNSName) @@ -59,7 +59,7 @@ def get_x509_text(cert): def get_common_name(cert): - """Retrun the common name from the certificate""" + """Return the common name from the certificate""" try: names = cert.subject.get_attributes_for_oid(NameOID.COMMON_NAME) return names[0].value