PHP Classes

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

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 298 This week: 1All time: 7,373 This week: 202Up
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
Innovation award
Innovation award
Nominee: 9x

Winner: 1x

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  
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  /  lib  
File Role Description
  Plain text file CertChecker.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:298
This week:1
All time:7,373
This week:202Up
For more information send a message to info at phpclasses dot org.