Join the community today
Become a Member

Cloudflare SSL letsencrypt and cloudflare

Discussion in 'Domains, DNS, Email & SSL Certificates' started by SFLC, Dec 18, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    8:31 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  2. SFLC

    SFLC Active Member

    223
    59
    28
    Dec 4, 2016
    The Canadas
    Ratings:
    +112
    Local Time:
    12:31 PM
    1
    10
    Oh ya i've seen the backup conf files, i meant the actual site files, was prob unnecessary to go that far but might as well
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    8:31 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    oh addons/acmetool.sh doesn't touch or go anywhere near /home/nginx/domains/domain.com/* directory and files :)
     
  4. R0rke

    R0rke Member

    168
    22
    18
    Jun 2, 2016
    Iran
    Ratings:
    +37
    Local Time:
    3:31 AM
    2
    10
    hi @eva2000 ,
    i got exact same problem : [Bash] [21:30][root@Gamerpa.com ~]# cat /root/centminlogs/acmetool.sh-debug-log-200817- - Pastebin.com
    i follow this steps : Letsencrypt - Official acmetool.sh testing thread for Centmin Mod 123.09beta01
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    8:31 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  6. R0rke

    R0rke Member

    168
    22
    18
    Jun 2, 2016
    Iran
    Ratings:
    +37
    Local Time:
    3:31 AM
    2
    10
    first of all thanks for your replay .
    i search for it but i don't found any articles can u help me with this ? thanks
    i prefer webroot too .
     
  7. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    8:31 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    https://centminmod.com/acmetool has everything and method 3 below

    There's generally 3 ways of setting up HTTPS SSL certificate for Centmin Mod Nginx HTTP/2 based HTTPS

    Method 1. The traditional way via centmin.sh menu option 2, 22 and selecting yes to self-signed ssl certificates first. Then converting the self-signed ssl certificate to paid or free (Letsencrypt) web browser trusted SSL certificates outlined at How to switch self-signed SSL certificate to paid SSL certificate ? You would still need to follow the same steps outlined at Nginx SPDY SSL Configuration for obtaining and purchasing the paid SSL certificate and most important part is the concatenation of the SSL provider provided filesto create the mentioned /usr/local/nginx/conf/ssl/domaincom/ssl-unified.crt and /usr/local/nginx/conf/ssl/domaincom/ssl-trusted.crtfiles referenced in your Nginx SSL vhost config file.

    You may need to also decide if you want to enable HTTP to HTTPS redirect outlined at How to force redirect from HTTP:// to HTTPS:// ?

    If you didn't answer yes at time of initial nginx vhost creation to self-signed ssl certificates, you can manually setup the self-signed ssl certificate via the vhost generator by checking self-signed ssl box and enter a domain name. This will outline instructions for manually creating and setting up self-signed ssl certificate and nginx vhost settings. Then for web browser trusted ssl certificates you switch follow - How to switch self-signed SSL certificate to paid SSL certificate ?.

    Method 2. Using and testing Centmin Mod 123.09beta01's new addons/acmetool.sh addon which is still in beta testing only for integrating Letsencrypt SSL certificates. And has both auto and manual methods.

    Method 3. Fully manual method for free Letsencrypt SSL certificates.
     
  8. R0rke

    R0rke Member

    168
    22
    18
    Jun 2, 2016
    Iran
    Ratings:
    +37
    Local Time:
    3:31 AM
    2
    10
    wow . fixed thanx
    believe me you are my hero . you'l never forgotten :D
    but there is something ? after this what should i do with Cloudflare crypto settings ?
    i mean if i want to use my obtained webroot SSL From lets Encrypt . should i turn off the Cloudflare's fliexble or full strict ssl ?
     
  9. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    8:31 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    cloudflare ssl can't be turned off if you want to use HTTPS, if you turn off cloudflare ssl, then HTTPS is 301 redirected to HTTP (non-https). Security wise with letsencrypt ssl on centmin mod nginx server backend + cloudflare change from flexible ssl to full strict ssl mode so cloudflare talks to your server's HTTPS setup