Skip to content

Commit

Permalink
Version 0.58. See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TheScriptGuy committed May 18, 2024
1 parent 005170f commit 59c24e2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 2024/05/18
## Version 0.58
### Fixes :wrench:
* Fixed a minor indentation bug in certificateModule.py. The decoder would (incorrectly) only be executed if the save_certificate option was enabled.

# 2024/01/06
## Version 0.57
### Enhancements :rocket:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Certificate Checker

Version: 0.57
Version: 0.58

Author: TheScriptGuy

Expand Down Expand Up @@ -30,7 +30,7 @@ usage: certCheck.py [-h] [--hostname HOSTNAME] [--save_certificate] [--output_di
[--queryFile QUERYFILE] [--uploadJsonData UPLOADJSONDATA] [--mongoDB] [--sendEmail] [--retryAmount RETRYAMOUNT] [--timeBetweenRetries TIMEBETWEENRETRIES] [--contextVariables] [--environmentVariables]
[--setTag SETTAG] [--delTag] [--getTag] [--renewDeviceId] [--getDeviceId] [--deleteDeviceId] [--setTenantId SETTENANTID] [--getTenantId] [--delTenantId] [--createBlankConfiguration]

Certificate Checker v0.57
Certificate Checker v0.58

options:
-h, --help show this help message and exit
Expand Down
6 changes: 3 additions & 3 deletions certCheck.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Program: Certificate Checker
# Author: Nolan Rumble
# Date: 2024/01/06
# Version: 0.57
# Date: 2024/05/18
# Version: 0.58

import argparse
import datetime
Expand All @@ -19,7 +19,7 @@
from data import sendDataEmail
from mongo import mongo_connection

scriptVersion = "0.57"
scriptVersion = "0.58"

# Global Variables
args = None
Expand Down
10 changes: 5 additions & 5 deletions certificate/certificateModule.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Certificate Module
# Version: 0.26
# Last updated: 2024-01-06
# Version: 0.27
# Last updated: 2024-05-18
# Author: TheScriptGuy

import ssl
Expand Down Expand Up @@ -136,8 +136,8 @@ def getCertificate(self, __hostinfo: dict) -> dict:
file_writer = FileOperations.FileOperations(output_file)
file_writer.write_binary(__binary_certificate)
print("...Done")
_certdecoder = CertificateDecoder.CertificateDecoder()
__certificate = _certdecoder.decode(__binary_certificate)
_certdecoder = CertificateDecoder.CertificateDecoder()
__certificate = _certdecoder.decode(__binary_certificate)

__cipher = s.cipher()
__hostnameData["certificateMetaData"] = __certificate
Expand Down Expand Up @@ -395,7 +395,7 @@ def uploadJsonData(self, __certificateJsonData: dict, __httpUrl: str) -> str:
def __init__(self, **kwargs):
"""Initialize the class."""
self.initialized = True
self.moduleVersion = "0.26"
self.moduleVersion = "0.27"
self.certificate = {}

self.save_certificate = kwargs['save_certificate']
Expand Down

0 comments on commit 59c24e2

Please sign in to comment.