Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timothycarambat/certcheck
Send a status email about the SSL status of websites. Will report a ranked list of the websites you want by days until expiration.
https://github.com/timothycarambat/certcheck
alert certificates cron crontask email-notification php ssl
Last synced: 1 day ago
JSON representation
Send a status email about the SSL status of websites. Will report a ranked list of the websites you want by days until expiration.
- Host: GitHub
- URL: https://github.com/timothycarambat/certcheck
- Owner: timothycarambat
- Created: 2018-02-15T23:13:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-04T19:39:36.000Z (over 6 years ago)
- Last Synced: 2024-12-13T19:14:29.631Z (20 days ago)
- Topics: alert, certificates, cron, crontask, email-notification, php, ssl
- Language: PHP
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# 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](Capture.JPG)# Get Started
Its easy to get started. It is suggested you do this over SSH and have
[Composer](https://getcomposer.org//) 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 = '[email protected]'; //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('[email protected]', 'SSLChecker'); //Set the FROM email
$mail->addAddress('[email protected]'); //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
```