PHP Classes

PHP SSL Certificate Check: Check SSL certificates validity for given domains

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 329 All time: 7,155 This week: 52Up
Version License PHP version Categories
certchecker 1.0.0GNU General Publi...5Networking, PHP 5, Validation
Description 

Author

This class can check SSL certificates validity for given domains.

It reads a file named domains.txt to retrieve a list of domains to be checked.

The class attempts to connect to each domain using SSL so it can verify if it is possible to connect to that domain and retrieve the details of the SSL certificate.

If a domain is validity cannot be verified or it will expires in less than 30 days, the class will send a notification by email to addresses defined in a separate configuration file using a SMTP server also defined in that file.

Innovation Award
PHP Programming Innovation award nominee
November 2018
Number 5
SSL is a well known protocol for implementing secure connections over the Web. It requires the installation of SSL certificates that will eventually expire.

This class can validate a set of SSL certificates for a list of given, domains, it it helps site administrators to not forget to renew those certificates before thy expire by sending email notifications ahead of time.

Manuel Lemos
Picture of Istvan Dobrentei
  Performance   Level  
Name: Istvan Dobrentei <contact>
Classes: 12 packages by
Country: Hungary Hungary
Age: 47
All time rank: 134511 in Hungary Hungary
Week rank: 195 Up3 in Hungary Hungary Up
Innovation award
Innovation award
Nominee: 9x

Winner: 1x

Example

<?php
require 'vendor/autoload.php';

use
Distvan\CertChecker;

$certChecker = new CertChecker('config.ini');


Details

The CertChecker class helps to detect a domain SSL certification expiration. It sends a notification emails when checking failed or need a cert update.

Usage:

  • Put the domain names into the domain.txt (every line should containt one domain name).
  • Install dependencies running compose comand.
  • Setup the config.ini file.
  • Setup a cron job and run the cron_script.php (for example: every day, or every week at once)

  Files folder image Files (5)  
File Role Description
Files folder imagelib (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file config.ini Data Auxiliary data
Accessible without login Plain text file cron_script.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (5)  /  lib  
File Role Description
  Plain text file CertChecker.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:329
This week:0
All time:7,155
This week:52Up