Giter Club home page Giter Club logo

letsencrypt-expiring-certs's Introduction

Tool to get domains of expiring certificates

The tool helps to renew letsencrypt certiicates from cron

Install

The tool is written in go, so you will need a go compiler.

It's often shipped with Linux distribution, for example on debian you can install the golang package:

$ sudo apt-get install golang

Then to install the tool run the following command:

$ export GOPATH="$HOME/gocode";
$ go get github.com/Ajnasz/letsencrypt-expiring-certs

This will download and also compile the code:

In the $HOME/gocode/bin/ folder you will find the binary.

In the gocode/src/github.com/Ajnasz/letsencrypt-expiring-certs/ folder you will find the source code.

In the folder of the source code you can build tool again by using the go build command.

If you use other OS then Linux or other distribution, read the documenatition: https://golang.org/doc/install

Usage

List domains with expired certificates

$ ./letsencrypt-expiring-certs -expire="`date`"

List domains of certificates which will expire in 2 weeks

$ ./letsencrypt-expiring-certs -expire="`date --date='2 weeks'`"

List domains of certificates which will expire at 03/05/2016 11:28

$ ./letsencrypt-expiring-certs -expire="`date --date '03/05/2016 11:28'`"

Use the -certs-path option to change the default path of certificates (/etc/letsencrypt/live)

Use the -pem-name if the nem of your pem files is different then the default (fullchain.pem)

How to use in shell script

You can see an example cron script in the scripts folder, see the scritps/cron.sh Make sure every path is correct in the script.

Download

You can download prebuild binary from the following link: http://bit.ly/1U1JqfO sha1: http://bit.ly/1mkl9V9

Download the file, check if the file not damaged:

$ wget http://bit.ly/1U1JqfO
$ wget http://bit.ly/1mkl9V9
$ sha1sum -c sha1.sum

Unzip and make the file executable:

$ gunzip letsencrypt-expiring-certs.2.0.2.gz
$ chmod +x letsencrypt-expiring-certs.2.0.2
$ mv letsencrypt-expiring-certs.2.0.2 letsencrypt-expiring-certs

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.