It’s a simple script running in python that collects SSL/TLS information then it returns the group of information in JSON. It can also connect through your specified SOCKS server.
One of the good things about this script is that it will fully analyze the SSL certificate for security issues and will include the report in the output, CSV, HTML, or a JSON file.
What is SSL
An SSL connection means that the connections, for example for payment transactions and the sending of data with forms such as name, email, etc. from a website are secure. This is done by linking an SSL certificate to the website. This guarantees the privacy of visitors to the website. When the website is linked with an SSL certificate, it is recognizable because the URL is HTTPS. A non-secure connection is HTTP without the “s”, this “s” stands for secure. Because http and https is not displayed on a mobile, a lock has been added for the URL to make security more visible
The SSL checker tool is straight forward in the usage, and it contains a clear help interface.
./ssl_checker.py -h usage: ssl_checker.py (-H [HOSTS [HOSTS ...]] | -f HOST_FILE) [-s HOST:PORT] [-c FILENAME.CSV] [-j] [-S] [-x] [-J] [-a] [-v] [-h] Collects useful information about given host's SSL certificates. optional arguments: -H [HOSTS [HOSTS ...]], --host [HOSTS [HOSTS ...]] Hosts as input separated by space -f HOST_FILE, --host-file HOST_FILE Hosts as input from file -s HOST:PORT, --socks HOST:PORT Enable SOCKS proxy for connection -c FILENAME.CSV, --csv FILENAME.CSV Enable CSV file export -j, --json Enable JSON in the output -S, --summary Enable summary output only -x, --html Enable HTML file export -J, --json-save Enable JSON export individually per host -a, --analyze Enable SSL security analysis on the host -v, --verbose Enable verbose to see what is going on -h, --help Show this help message and exit
Port is optional in the SSL checker script. The script will use 443 if not specified.
-f, --host-fileFile containing hostnames for input
-H, --hostEnter the hosts separated by space
-s, --socksEnable connection through SOCKS server
-c, --csvEnable CSV file export by specifying filename.csv after this argument
-j, --jsonUse this if you want to only have the result in JSON
-S, --summaryThis argument will show quick summary in the output
-x, --htmlEnable HTML file export
-J, --json-saveUse this if you want to save as JSON file per host
-a, --analyzeThis argument will include security analyze on the certificate. Takes more time. No result means failed to analyze.
-v, --verboseShows more output. Good for troubleshooting.
-h, --helpShows the help and exit
As a Python Module
Simply import the
ssl_checker.py into your python script and use it as a module.
from ssl_checker import SSLChecker SSLCheckerObject = SSLChecker()