An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# πŸ”ŽπŸ”’ Check Certificat

Script to check x.509 certificat of website using openssl

[![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](LICENSE) [![Twitter: JMousqueton](https://img.shields.io/twitter/follow/JMousqueton.svg?style=social)](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 :)