https://github.com/ssddanbrown/sslcheck
MIGRATED TO CODEBERG
https://github.com/ssddanbrown/sslcheck
cli expiry php ssl-certificate
Last synced: 5 months ago
JSON representation
MIGRATED TO CODEBERG
- Host: GitHub
- URL: https://github.com/ssddanbrown/sslcheck
- Owner: ssddanbrown
- License: mit
- Archived: true
- Created: 2017-03-04T11:54:30.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-05-18T14:00:02.000Z (almost 4 years ago)
- Last Synced: 2024-10-28T13:22:03.035Z (over 1 year ago)
- Topics: cli, expiry, php, ssl-certificate
- Language: PHP
- Homepage: https://codeberg.org/danb/sslcheck
- Size: 10.7 KB
- Stars: 77
- Watchers: 8
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# sslcheck
A simple php script to check the expiry of SSL certificates.
### Requirements
* PHP (Including CLI support).
* OpenSSL
This script has been tested only on Ubuntu 16.04+ using PHP7.
### Usage
1. Clone this repo or simply download the `sslcheck` file.
2. Ensure the `sslcheck` file is executable (`chmod a+x sslcheck`).
3. Execute the script `./sslcheck www.example.com`.
If you can't execute the script directly you may need to envoke the script via php (`php sslcheck www.example.com`);
You can check multiple domains by listing them all out when running the script:
```
sslcheck www.google.com www.example.com www.github.com
```
If a domain is found to have multiple A or AAAA records then each will be checked individually and the IP will be shown alongside the domain in the output.
#### Usage via Email
The file `email-example.sh` is a simple script showing how this can be used via email. Simply read the comments at the top of the script and change the configuration variables to set it up. If the `mail` command is not available on your system you may need to install it (ubuntu: `sudo apt-get install mailutils`). A good idea would be to set this up as a cron job to send a weekly report.
