Welcome to Centmin Mod Community
Register Now

Migrating a domain with active Letsencrypt SSL to Centminmod VPS

Discussion in 'Domains, DNS, Email & SSL Certificates' started by leoadhemartan, Jul 8, 2019.

  1. leoadhemartan

    leoadhemartan New Member

    7
    3
    3
    Jun 28, 2019
    Ratings:
    +3
    Local Time:
    4:19 PM
    Hi,

    I have an existing vps with 3 domains that I just renewed Letsencrypt on last June 28.

    I have created a new vps using centminmod beta 73 and had set LETSENCRYPT_DETECT='y' in /etc/centminmod/custom_config.inc


    My question, if I do option 22 in centminmod for these 3 domains, will letsencrypt regenerate a new ssl? carryover the existing ssl? or do I have to wait for the original ssl to expire in 90 days before I do a migration?

    Thanks!
     
  2. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    6:19 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    will regenerate the ssl cert so that new server's underlying acme.sh client can auto renew

    But in addition to that, if you copy SSL certs from old server 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 on new server. 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 if you don't want to reissue on new server, copy over the /root/.acme.sh/yourdomain.com directory from old server too which contains the details acme.sh client needs for auto renew cronjobs.