๐Ÿ“ฆ helioloureiro / letsencrypt-cert-remaining-days

A certificate parser to get how many days you have left on your letsencrypt certificates

โ˜… 1 stars โ‘‚ 0 forks ๐Ÿ‘ 1 watching โš–๏ธ BSD 3-Clause "New" or "Revised" License
๐Ÿ“ฅ Clone https://github.com/helioloureiro/letsencrypt-cert-remaining-days.git
HTTPS git clone https://github.com/helioloureiro/letsencrypt-cert-remaining-days.git
SSH git clone git@github.com:helioloureiro/letsencrypt-cert-remaining-days.git
CLI gh repo clone helioloureiro/letsencrypt-cert-remaining-days
Helio Loureiro Helio Loureiro Generating static binary 18c4649 9 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ bin
๐Ÿ“„ .gitignore
๐Ÿ“„ go.mod
๐Ÿ“„ LICENSE
๐Ÿ“„ main_test.go
๐Ÿ“„ main.go
๐Ÿ“„ Makefile
๐Ÿ“„ README.md
๐Ÿ“„ README.md

letsencrypt-cert-remaining-days

A certificate parser to get how many days you have left on your letsencrypt certificates

A simple way to check how many days your certificate remains valid.

By default it reads the configuration files located on /etc/letsencrypt (actually under /etc/letsencrypt/renew), search for the cert = entry to find the certificate. Then check how many days it has left.

You can specify a single domain using parameter --domain.

Example

โฏ ./letsencrypt-cert-days --letsencryptdir=$PWD/testing/etc/letsencrypt --domain=helio.loureiro.eng.br
Using directory: /home/helio/DEVEL/letsencrypt-cert-remaining-days/testing/etc/letsencrypt
helio.loureiro.eng.br=50

โฏ sudo ./letsencrypt-cert-days
helio.truta.org=51