Get the most out of your Centmin Mod LEMP stack
Become a Member

Letsencrypt LetsEncrypt Python Client, Simple Bash Alternative

Discussion in 'Domains, DNS, Email & SSL Certificates' started by ethanpil, Jan 10, 2016.

  1. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    9:53 PM
    I found this code recently, and I thought it may be a good alternative for CentMinMod's LE support. Its a very simple single file, Bash script that manages all LetsEncrypt interaction, and may be a good fit for this project.

    Neilpang/le · GitHub

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    9:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    cheers @ethanpil yes i am aware of this bash script looks very suited for Centmin Mod.

    However, the official letsencrypt client is constantly changing with new features everyday so for quickest support of such changes, I'd probably stick with official Letsencrypt SSL client integration into Centmin Mod until the feature set stabilizes :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    9:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    1:53 PM
    1.9.12
    10.0.23
  5. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    9:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    1:53 PM
    1.9.12
    10.0.23
    You are fast - was right about to write about this 'sexy' options that project have.. Yeah @eva2000 - think this could be some kickass additional stuff.
     
  7. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    9:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    le bash script has added Cloudflare API support for dns-01 challenges for Letsencrypt SSL certificate verification Neilpang/le: Simplest shell script for LetsEncrypt free Certificate client - it's really shaping up to maybe being integrated into Centmin Mod so that it supports both official letsencrypt client AND the 3rd party le bash client :)
     
  8. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    9:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Just added 3rd party shell based simple le https://github.com/Neilpang/le client support to experimental Centmin Mod 123.09beta01le4 branch. It defaults to STAGING ACME API server for test SSL certs for now which are not trusted in web browsers.

    Initial Commits
    simple shell based le client https://github.com/Neilpang/le installled at /usr/local/bin/le and controlled via setting 2 variables which can be set via persistent config file /etc/centminmod/custom_config.inc:

    Code:
    LECLIENT_OFFICIAL='n'
    LECLIENT_LE='y'
    
    This will switch from default official letsencrypt client to 3rd party shell based simple le client outlined at Neilpang/le: Simplest shell script for LetsEncrypt free Certificate client. Both are mutually exclusive so SSL certificate obtained via official letsencrypt client is saved to one directory and SSL certs obtained via 3rd party shell based simple le client are saved elsewhere in /root/.le/${vhostname}/. A nginx vhost created with official letsencrypt client won't work with 3rd party simple shell based le client created nginx vhost and vice versa.
     
    Last edited: Jan 31, 2016
  9. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    9:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+