Git Product home page Git Product logo

Comments (3)

sahsanu avatar sahsanu commented on July 23, 2024 2

Hi @manast ,

I don't like Apple but I also don't like to leave an open issue ;), so I've installed MAC OS X Sierra 10.12 on a VM and I tested lectl on it. The "problem" is the date and sed utilities packaged on this OS, you need to install the GNU versions of these commands.

So you need to install homebrew on your OS https://brew.sh/ and once installed you need to change the utilities date by gdate and sed by gsed used by lectl.

Instructions:

If you have not installed homebrew then install it:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Now install coreutils (contains gdate) and gnu-sed (contains gsed)
brew install coreutils gnu-sed

Create a dir for lectl, download the latest version (0.11) and modify variables _date and _sed to point to gdate and gsed (installed with brew)

cd ~
mkdir lectl
cd lectl
curl -O https://raw.githubusercontent.com/sahsanu/lectl/master/lectl
chmod +x lectl
gsed -i 's/_date=date/_date=gdate/' lectl
gsed -i 's/_sed=sed/_sed=gsed/' lectl

And now you can use lectl on Mac OS X:

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.12
BuildVersion:   16A323
$ ./lectl -su letsencrypt.org
lectl 0.11 (2017-October-06)

2017/October/06 11:12:50 - Checking certs for letsencrypt.org

I have found 6 non expired certificates (max number of certs searched: 100) for domain letsencrypt.org and its subdomains *.letsencrypt.org

CRT ID     DOMAIN (CN)                         VALID FROM             VALID TO               EXPIRES IN  SANs
222801912  community.letsencrypt.org           2017-Oct-03 00:00 UTC  2018-Jan-01 00:00 UTC  86 days     community.letsencrypt.org
205224160  revoked-isrgrootx1.letsencrypt.org  2017-Sep-06 15:01 UTC  2017-Dec-05 15:01 UTC  59 days     revoked-isrgrootx1.letsencrypt.org
205224080  valid-isrgrootx1.letsencrypt.org    2017-Sep-06 15:00 UTC  2017-Dec-05 15:00 UTC  59 days     valid-isrgrootx1.letsencrypt.org
205223972  helloworld.letsencrypt.org          2017-Sep-06 15:00 UTC  2017-Dec-05 15:00 UTC  59 days     helloworld.letsencrypt.org
183697052  community.letsencrypt.org           2017-Aug-04 00:34 UTC  2017-Nov-02 00:34 UTC  26 days     community.letsencrypt.org
183322948  community.letsencrypt.org           2017-Aug-03 14:18 UTC  2017-Nov-01 14:18 UTC  25 days     community.letsencrypt.org

You have issued 1 certificate in last 7 days so you could issue 19 more certificates now.

I hope this helps.

Cheers,
sahsanu

from lectl.

sahsanu avatar sahsanu commented on July 23, 2024

from lectl.

sahsanu avatar sahsanu commented on July 23, 2024

Just for the records:

$./lectl letsencrypt.org
lectl 0.10 (2017-September-15)

2017/September/28 11:47:34 - Checking certs for letsencrypt.org

I have found 8 non expired certificates (max number of certs searched: 100) for domain letsencrypt.org and its subdomains *.letsencrypt.org

CRT ID     DOMAIN (CN)                         VALID FROM              VALID TO                EXPIRES IN
205224160  revoked-isrgrootx1.letsencrypt.org  2017-Sep-06 17:01 CEST  2017-Dec-05 16:01 CET   68 days
205224080  valid-isrgrootx1.letsencrypt.org    2017-Sep-06 17:00 CEST  2017-Dec-05 16:00 CET   68 days
205223972  helloworld.letsencrypt.org          2017-Sep-06 17:00 CEST  2017-Dec-05 16:00 CET   68 days
183697052  community.letsencrypt.org           2017-Aug-04 02:34 CEST  2017-Nov-02 01:34 CET   34 days
183322948  community.letsencrypt.org           2017-Aug-03 16:18 CEST  2017-Nov-01 15:18 CET   34 days
167314484  revoked-isrgrootx1.letsencrypt.org  2017-Jul-05 17:01 CEST  2017-Oct-03 17:01 CEST  5 days
167314441  valid-isrgrootx1.letsencrypt.org    2017-Jul-05 17:00 CEST  2017-Oct-03 17:00 CEST  5 days
167314358  helloworld.letsencrypt.org          2017-Jul-05 17:00 CEST  2017-Oct-03 17:00 CEST  5 days

You have issued 0 certificates in last 7 days so you could issue 20 more certificates now.

from lectl.

Related Issues (10)

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.