Learn about Centmin Mod LEMP Stack today
Become a Member

SSL Add functionality on Centminmod to auto enable commercial ssl certificates?

Discussion in 'Feature Requests & Suggestions' started by pamamolf, Nov 26, 2016.

  1. pamamolf

    pamamolf Well-Known Member

    3,119
    295
    83
    May 31, 2014
    Ratings:
    +531
    Local Time:
    4:57 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hello :)

    I was wondering if it is possible to add to Centminmod an addon that will auto install commercial ssl certificates?

    The user should upload on a specific folder or the script ask for ssl certificate files and then do some magic and enable it :)

    Thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    37,305
    8,151
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,547
    Local Time:
    12:57 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  3. pamamolf

    pamamolf Well-Known Member

    3,119
    295
    83
    May 31, 2014
    Ratings:
    +531
    Local Time:
    4:57 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    One last question:

    If i copy the self signed or let's encrypt certificate files from one server to another they will work or i have to re generate them every time on any new server?

    Thank you
     
  4. Ahmad

    Ahmad Premium Member Premium Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    3:57 PM
    1.9.9
    10.1.10
    You can copy them, just as you would do with purchased SSL certs :)
     
    • Informative Informative x 1
  5. eva2000

    eva2000 Administrator Staff Member

    37,305
    8,151
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,547
    Local Time:
    12:57 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Yeah if you copy them from /usr/local/nginx/conf/ssl/yourdomain.com directory along with nginx vhost files (/usr/local/nginx/conf/conf.d/yourdomain.com.conf and /usr/local/nginx/conf/conf.d/yourdomain.com.ssl.conf), they will work. One thing is with letsencrypt they need auto renewal as they have 90 day expiry, so you need to setup addons/acmetool.sh via acmeinstall command on new server
    Code (Text):
    ./acmetool.sh acmeinstall

    and then copy over the /root/.acme.sh/yourdomain.com directory too which contains the details acme.sh client needs for auto renew cronjobs.
     
    • Informative Informative x 1
..