Join the community today
Register Now

Letsencrypt How can I transfer from one server to another a Let’s Encrypt certificate?

Discussion in 'Domains, DNS, Email & SSL Certificates' started by pamamolf, Apr 25, 2019.

  1. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    10:55 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    Hello

    How can I transfer from one server to another a Let’s Encrypt certificate?


    Files and folders needed ?

    Thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    5:55 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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.
     
  3. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    10:55 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    What about the well known hidden folder ?

    Is it at the domains public folder and should i copy that also?

    Thank you
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    5:55 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    that shouldn't exist it's created on demand during acmetool.sh's call to acme.sh client during domain validation so nothing to copy over