Giter Club home page Giter Club logo

mcert's Introduction

Join Us: Slack Telegram WhatsApp

mCert Version

Version : v0.2.3
Release Date : 26-Nov-22

mCert - Monitor your SSL Certificate Smartly

What is mCert ?

mCert is small script to notify before ssl expiration. it will help you to renew your ssl before getting expired.

Mode of alert Notification

There are two Notification methods are available. you can use both or any one.

  • Email Notification
  • Slack Notification

Prerequisite

if you want get notification on your email you must need to install mSlack. if you want to get slack notification you must need to install mSlack accordingly. or you can install and configure both if you wish to get notification on both.

  • mSend - To get email notification - Installation steps
  • mSlack - To get slack notification - It will install automatically.
Step 1: Install mCert.
sudo curl -sL "https://github.com/HarryTheDevOpsGuy/mCert/raw/master/$(uname -p)/mcert" -o /usr/bin/mcert
sudo chmod +x /usr/bin/mcert

# Verify installation
mcert -v

# Check SSL Status
mcert -d "www.google.com facebook.com"

Getting Start with help

## mcert -h

mCert [OPTION]
-d domain_name   Domain to test ssl expiration
-x days          Certificate expiration interval (eg. if cert_date days)
-f domain_file   File with a list of FQDNs|domains
-a email         Send Email Notification (Combine Report).
-e email         Send Email Notification
-s '#devops'      Send Slack Notification
-q               Don't print anything on the console
-b               Display header on the console
-r               Attach full csv report with combine report
-V               enable verbose
-h               Display this help
-v               Display version

Example 1

To Test www.google.com ssl certificate if certificate expiry remaining day less than 60 day. it will send email notification at [email protected].

mcert -d www.google.com -e [email protected] -x 60 -V
  • -x 60 check certificate expiration days.
  • -V enable verbose mode

Example 2

if you want to test multiple domains you can run below command. it will send email and slack notification if any domain is going to expire within 60 days.

mcert -d "www.google.com facebook.com" -s "#devops" -e "[email protected]" -x 60 -V

Example 3

if you want to test multiple domains you can run below command. it will send email and slack notification if any domain is going to expire within 60 days.

Here you can create list of domains in txt file.

#cat /opt/domains.txt
www.google.com
www.facebook.com
www.apple.com
mcert -f "/opt/domains.txt" -s "#devops" -e "[email protected]" -x 60 -V
  • -f - to provide domain list file path.

Email Notification Template | Report

mCert email alert templates

mCert email alert templates

Do you want monitor your website free of cost ?

Yes, its free of cost, you can submit your websites and email id, and we will notify you accordingly.

Step To submit New Domain : mCert-Tracker

Thanks you

Feel free to join us -> The DevOps Professionals Group

mcert's People

Contributors

harrythedevopsguy avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.