Skip to content

Commit

Permalink
Version 0.52. See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Git committed Oct 15, 2023
1 parent 9e79533 commit 5067792
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions certificate/certificateModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def getCertificate(self, __hostinfo: dict) -> dict:
__hostinfo['hostname'],
__hostinfo['port']
)

# Lets try and see if we can create the right context with the hash file.
try:
__ctx = ssl.create_default_context(cafile=certificateHashFilename)
Expand Down Expand Up @@ -186,6 +186,7 @@ def returnNotBefore(__certificateObject) -> None:
if __certificateObject is not None:
return __certificateObject['notBefore']
return ""

@staticmethod
def checkIssuer(__certificateObject) -> bool:
"""Check to see if issuers are trusted."""
Expand Down Expand Up @@ -298,8 +299,6 @@ def printCertInfoJSON(__certificateObject) -> None:
}
print(jsonCertInfoFormat)



@staticmethod
def returnNotAfter(__certificateObject) -> None:
"""Return the notAfter field from the certificate."""
Expand Down

0 comments on commit 5067792

Please sign in to comment.