forked from ssddanbrown/sslcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
659 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2020 Dan Brown | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
The MIT License (MIT) | ||
Copyright (c) 2020 Dan Brown | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
# sslcheck | ||
|
||
A simple php script to check the expiry of SSL certificates. | ||
|
||
<a href="https://asciinema.org/a/105703" target="_blank"><img src="https://asciinema.org/a/105703.png" width="480"/></a> | ||
|
||
### 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. | ||
|
||
# sslcheck | ||
|
||
A simple php script to check the expiry of SSL certificates. | ||
|
||
<a href="https://asciinema.org/a/105703" target="_blank"><img src="https://asciinema.org/a/105703.png" width="480"/></a> | ||
|
||
### 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. | ||
|
Oops, something went wrong.