Skip to content

Send a status email about the SSL status of websites. Will report a ranked list of the websites you want by days until expiration.

Notifications You must be signed in to change notification settings

timothycarambat/certcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

Hello! I wrote this simple package that will email you a sorted table of your SSL domains on whatever interval you set the cron task at (suggest 1st and 15th of month).

This looks like below: Show Email

Get Started

Its easy to get started. It is suggested you do this over SSH and have Composer already installed on the server. This file should not be in any public directory and will typically sit in the root directory of your server.

Clone Repo

cd ~/
git clone https://github.com/timothycarambat/certcheck.git
cd certcheck

Install Dependencies

Currently the dependencies are Carbon and PhpMailer.

#~/certcheck/
composer install --no-dev

Configure Your Settings

using your choice of editor ...

#~/certcheck/certcheck.php
//input all your SSL domains here that you want to recieve a report on.
$urls =[
	"https://my-ssl-site.com",
];

....

$mail->Host = 'your.host.com'; //Enter your Host Here
$mail->SMTPAuth = true;
$mail->Username = 'sslchecker@example.com'; //Set Email account username
$mail->Password = 'hunter2'; //Set Secret Pass
$mail->SMTPSecure = 'ssl';
$mail->Port = 465; //Make sure port is correct for server

//Recipients
$mail->setFrom('SSLChecker@example.com', 'SSLChecker'); //Set the FROM email
$mail->addAddress('me@example.com'); //Set to your email

Test it works

#~/certcheck/
php certcheck.php

#Should respond 'Email Sent'. Check Email for report.

Setup Cron

#setup for 1st and 15th of month
0 0 1,15 * * php ~/certcheck/certcheck.php > /dev/null 2>&1

About

Send a status email about the SSL status of websites. Will report a ranked list of the websites you want by days until expiration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages