Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thescriptguy/certificatechecker
certificateChecker Python Script
https://github.com/thescriptguy/certificatechecker
ca certificate certificates checker expiry json metadata mongodb pki python python3 upload
Last synced: about 1 month ago
JSON representation
certificateChecker Python Script
- Host: GitHub
- URL: https://github.com/thescriptguy/certificatechecker
- Owner: TheScriptGuy
- License: other
- Created: 2022-03-05T22:57:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-18T23:58:02.000Z (7 months ago)
- Last Synced: 2024-05-19T00:30:51.851Z (7 months ago)
- Topics: ca, certificate, certificates, checker, expiry, json, metadata, mongodb, pki, python, python3, upload
- Language: Python
- Homepage:
- Size: 206 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README-email.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Example to send email
If you'd like to be sent an email of the results of the queries, the mail.cfg file needs to be defined.Some important things to note in the mail.cfg file:
* Right now only Authenticated SMTP STARTTLS is allowed. This means you need all the fields below in order to access except the verbose field.
* If the verbose field is defined to True, then additional SMTP interactions will be displayed.
* the bodyHtmlFile and bodyTextFile variables define where the HTML and TEXT versions of each file is. Make sure you add the MONITOREDHOSTS keyword into the HTML and TEXT files. This is used for inserting the results into the correct place.```json
{
"hostname": "mail.mysmartdomain.com",
"port": 465,
"smtpuser": "[email protected]",
"smtppass": "BlaPasswordBla1",
"startTLS": "true",
"from": "[email protected]",
"to": "[email protected]",
"subject": "Certificate Checker",
"bodyHtmlFile": "bodyhtml.html",
"bodyTextFile": "bodytext.txt",
"verbose": "false"
}
```### Single host:
```bash
$ python3 certCheck.py --hostname apple.com --sendEmail
$
```### Multiple hosts:
```bash
$ python3 certCheck.py --queryFile queryfile --sendEmail
$
```