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 Premium Member Premium Member

    3,585
    345
    83
    May 31, 2014
    Ratings:
    +667
    Local Time:
    11:50 AM
    Nginx-1.17.x
    MariaDB 10.3.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

    42,393
    9,572
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,752
    Local Time:
    7:50 PM
    Nginx 1.17.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
  3. pamamolf

    pamamolf Premium Member Premium Member

    3,585
    345
    83
    May 31, 2014
    Ratings:
    +667
    Local Time:
    11:50 AM
    Nginx-1.17.x
    MariaDB 10.3.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

    42,393
    9,572
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,752
    Local Time:
    7:50 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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