Discover Centmin Mod today
Register Now

Beta Branch update addons/acmetool.sh checkdate option in 130.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Dec 18, 2022.

  1. eva2000

    eva2000 Administrator Staff Member

    53,531
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    10:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    update addons/acmetool.sh checkdate option in 130.00beta01

    - for addons/acmetool.sh checkdate option that lists all acme.sh installed Letsencrypt SSL certificates on nginx vhosts + lists all acme.sh issued and obtained Letsencrypt SSL certificates and their expiry dates, add additional info to display which Letsencrypt domain validation method was used by inspecting the Le_Webroot variable in acme.sh config files like /root/.acme.sh/yourdomain.com/yourdomain.com.conf for either the value of dns_cf for Cloudflare DNS API validation or full path to Nginx domain's vhost public web root like /home/nginx/domains/yourdomain.com/public
    - existing 130.00beta01 users can just run cmupdate to update and see the updated output via command
    Code (Text):
    /usr/local/src/centminmod/addons/acmetool.sh checkdates


    Continue reading...


    130.00beta01 branch

    Support Centmin Mod


    If you find Centmin Mod useful, please help support Centmin Mod
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,531
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    10:52 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    example for updated output for checkdates option in addons/acmetool.sh showing Letsencrypt validation method used in 130.00beta01
    Code (Text):
    /usr/local/src/centminmod/addons/acmetool.sh checkdates
    
    ----------------------------------------------
    nginx installed
    ----------------------------------------------
    
    /usr/local/nginx/conf/ssl/domain1.com/domain1.com-acme.cer
    SHA1 Fingerprint=XXXX
    certificate expires in 88 days on 16 Mar 2023
    
    /usr/local/nginx/conf/ssl/domain2.com/domain2.com-acme-ecc.cer
    SHA1 Fingerprint=YYYY
    certificate expires in 68 days on 24 Feb 2023
    
    ----------------------------------------------
    acme.sh obtained
    ----------------------------------------------
    
    /root/.acme.sh/domain1.com/domain1.com.cer
    SHA1 Fingerprint=XXXX
    [ below certifcate transparency link is only valid ~1hr after issuance ]
    https://crt.sh/?sha1=XXXX
    certificate expires in 88 days on 16 Mar 2023
    Letsencrypt validation method: Le_Webroot='/home/nginx/domains/domain1.com/public'
    
    /root/.acme.sh/domain2.com_ecc/domain2.com.cer
    SHA1 Fingerprint=YYYY
    [ below certifcate transparency link is only valid ~1hr after issuance ]
    https://crt.sh/?sha1=YYYY
    certificate expires in 68 days on 24 Feb 2023
    Letsencrypt validation method: Le_Webroot='dns_cf'