https://github.com/jmousqueton/checkcert
ππ Script for checking SSL certificates expiration date
https://github.com/jmousqueton/checkcert
bash bash-script certificate check date expiration script ssl ssl-certificate ssl-certificates x509 x509certificates
Last synced: 12 months ago
JSON representation
ππ Script for checking SSL certificates expiration date
- Host: GitHub
- URL: https://github.com/jmousqueton/checkcert
- Owner: JMousqueton
- License: gpl-3.0
- Created: 2022-08-07T11:25:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-09T14:18:41.000Z (over 3 years ago)
- Last Synced: 2025-01-07T20:15:48.644Z (about 1 year ago)
- Topics: bash, bash-script, certificate, check, date, expiration, script, ssl, ssl-certificate, ssl-certificates, x509, x509certificates
- Language: Shell
- Homepage:
- Size: 51.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# ππ Check Certificat
Script to check x.509 certificat of website using openssl
[](LICENSE) [](https://twitter.com/JMousqueton)
## π Documentation
### Script options
```
-d Domain name (Mandatory).
-h Print this Help.
-D <99> Number of days (by default 7 days).
-p <443> Port (by default 443).
-v Verbose error message on stderr
```
### return error code
| Error Code | Description |
|---|---|
| 0 | Not expired |
| 1 | Expired or will expired within 7 days by default |
| 3 | Openssl not installed |
| 22 | No domain specified or invalid options |
| 101 | Domain doesn't respond |
## π» Usage/Examples
```
$ ./checkcert.sh -d www.julien.io -p 443 -D 15 -v
β www.julien.io won't expired within 15 days.
$ ./checkcert.sh -d expired.badssl.com -p 443 -D 90 -v
β expired.badssl.com has been expired or will expire within 90 days.
```
## πΊ Roadmap
| Status | Description |
|---|---|
| β
|~~Add "Standard" Linux error code~~|
| β
|~~Disable SSL check on curl for website testing~~|
#### LΓ©gende
| Status | Description |
|---|---|
| β
| Done |
| π | In progress |
| π’ | Low priority |
| π‘ | Medium priority |
| π΄ | High Priority |
## π€ Authors
**Julien Mousqueton**
* Website:
* LinkedIn: [Julien Mousqueton](https://linkedin.com/in/julienmousqueton)
* Twitter: [@JMousqueton](https://twitter.com/JMousqueton)
* Github: [@JMousqueton](https://github.com/JMousqueton)
## π License
* [GNU 3.0](LICENSE)
## βπ» Acknowledgements
* Ecole 2600 students for the support while coding a sunday evening :)