Skip to content

A simple Python script that calls SSL Labs API to do SSL testings on servers and create a report in html.

License

Notifications You must be signed in to change notification settings

gomesjj/ssllabs-scan

 
 

Repository files navigation

SSL Labs Scan

githubactions travisci codecov License

Support Python >= 3.6

This tool calls the SSL Labs API v2 to do SSL testings on servers.

  • TODO: use v3 instead of v2
  • NOTE: Please note that the SSL Labs Assessment API has access rate limits. You can find more details in the sections "Error Response Status Codes" and "Access Rate and Rate Limiting" in the official SSL Labs API Documentation. Some common status codes are:
    • 400 - invocation error (e.g., invalid parameters)
    • 429 - client request rate too high or too many new assessments too fast
    • 500 - internal error
    • 503 - the service is not available (e.g., down for maintenance)
    • 529 - the service is overloaded

Input and Output

Sample input: sample/SampleServerList.txt

  1. summary.html (sample output: sample/summary.html)
  2. summary.csv (sample output: sample/summary.csv)
  3. hostname.json (sample output: sample/google.com.json)

Sample html output: alt text

Build and Run

Linux

virtualenv env
. env/bin/activate
pip install -e .
ssllabs-scan sample/SampleServerList.txt

Windows

virtualenv env
env\Scripts\activate
pip install -e .
ssllabs-scan sample\SampleServerList.txt

Tox Tests and Build the Wheels

pip install -r requirements-build.txt
tox -r

About

A simple Python script that calls SSL Labs API to do SSL testings on servers and create a report in html.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 95.4%
  • CSS 4.6%