Skip to content

dralom/SSLLabsReport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSLLabsReport

Qualys SSL Labs Scheduled Batch Report

Description

Given a batch of domains provided in a 'domains.txt' file one domain per line the script will send a new request to the Qualys SSL Labs API and initiate a new scan for each domain, wait for it to finish, then send an email report to a given email address.

The script is intended to be run in a docker container by means of the provided Dockerfile configuration.

Docker container

You can pull the latest version of this container from Docker Hub by running docker pull dralom/ssllabsreport or build your own by cloning this repo and running docker build -t SSLLabsReport .

Configuration

The configuration settings for the SMTP connection need to be provided in the form of a config.json file in the project's folder. The config.example.json file provides an example of the format of this file. The SMTPUSER and SMTPPASSWORD values are not mandatory if the SMTP relay does not require authentication. All other values are mandatory.

Example Run Command

For use with an open SMTP relay (no authentication)

docker run -d -it \
--name ssllabsreport \
-v /srv/ssllabsreport/domains.txt:/srv/SSLLabsReport/domains.txt \
-v /srv/ssllabsreport/config.json:/srv/SSLLabsReport/config.json \
--restart unless-stopped \
dralom/ssllabsreport

This will mount the container in detatched mode, map a local, persistent copy of the domains.txt file to the location where the script expects the file: /srv/SSLLabsReport/domains.txt, and map a local, persistent copy of the config.json file to the location where the script expects the file: /srv/SSLLabsReport/config.json. You may change the local value to where you store your copy of this file. Additionally, the --restart option will ensure that the docker container restarts unless explicitly stopped.

Note: The current default cron job runs the report every Monday at 4AM UTC but can take some time (up to 15 minutes per domain.)

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Qualys SSL Labs Scheduled Batch Report

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published