Skip to content

Commit

Permalink
Fixing some logic with save_certificate option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Git committed Jan 7, 2024
1 parent a0335b5 commit 005170f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions certificate/certificateModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,8 @@ def getCertificate(self, __hostinfo: dict) -> dict:
file_writer = FileOperations.FileOperations(output_file)
file_writer.write_binary(__binary_certificate)
print("...Done")

if not self.save_certificate:
_certdecoder = CertificateDecoder.CertificateDecoder()
__certificate = _certdecoder.decode(__binary_certificate)
_certdecoder = CertificateDecoder.CertificateDecoder()
__certificate = _certdecoder.decode(__binary_certificate)

__cipher = s.cipher()
__hostnameData["certificateMetaData"] = __certificate
Expand Down

0 comments on commit 005170f

Please sign in to comment.