Want more timely Centmin Mod News Updates?
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

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    3:27 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
     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    3:27 PM
    Nginx 1.13.x
    MariaDB 5.5
    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 :)
     
    • Agree Agree x 1
  3. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    3:27 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Agree Agree x 2
    • Winner Winner x 1
  4. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    6:27 AM
    1.9.12
    10.0.23
  5. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    3:27 PM
    Nginx 1.13.x
    MariaDB 5.5
  6. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    6:27 AM
    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.
     
    • Like Like x 1
  7. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    3:27 PM
    Nginx 1.13.x
    MariaDB 5.5
    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 :)
     
    • Like Like x 1
    • Winner Winner x 1
  8. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    3:27 PM
    Nginx 1.13.x
    MariaDB 5.5
    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
    • Like Like x 1
  9. eva2000

    eva2000 Administrator Staff Member

    30,956
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,418
    Local Time:
    3:27 PM
    Nginx 1.13.x
    MariaDB 5.5