# Migrate website to a new server

**URL:** <https://community.letsencrypt.org/t/migrate-website-to-a-new-server/116698>\
**Category:** Help\
**Created:** [March 18, 2020, 7:01pm UTC](https://community.letsencrypt.org/t/migrate-website-to-a-new-server/116698 "2020-03-18T19:01:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaylitzis](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/yaylitzis/32/19490_2.png) [@yaylitzis](https://community.letsencrypt.org/u/yaylitzis)\
**Post date:** [March 18, 2020, 7:01pm UTC](https://community.letsencrypt.org/t/migrate-website-to-a-new-server/116698/1 "2020-03-18T19:01:01Z")

</div>

I want to migrate my website to a new server. Could you help me, which is the proper way to deal with the Let's Encrypt certification;  
Should I issue a new cert in the new server ?

Thanks a lot!

> My domain is: www.scti.gr
> 
> My web server is (include version): Apache2
> 
> The operating system my web server runs on is: Ubuntu 18.04
> 
> I can login to a root shell on my machine : Yes
> 
> certbot --version: certbot 0.31.0

---

<div class="post-metadata">

**Author:** ![9peppe](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/9peppe/32/31596_2.png) [@9peppe](https://community.letsencrypt.org/u/9peppe)\
**Post date:** [March 18, 2020, 7:17pm UTC](https://community.letsencrypt.org/t/migrate-website-to-a-new-server/116698/2 "2020-03-18T19:17:15Z")

</div>

> [@yaylitzis](#):
>
> Should I issue a new cert in the new server ?

This is your choice.

You can move the entire `/etc/letsencrypt` and `/etc/apache2` directories to the new server, or you can issue a new cert. (be careful, you can't use http and tls-alpn verification if your dns records point to the old server.)

> [@yaylitzis](#):
>
> Ubuntu 18.04

I'd postpone the move a couple of months.

---

<div class="post-metadata">

**Author:** ![yaylitzis](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/yaylitzis/32/19490_2.png) [@yaylitzis](https://community.letsencrypt.org/u/yaylitzis)\
**Post date:** [March 18, 2020, 7:27pm UTC](https://community.letsencrypt.org/t/migrate-website-to-a-new-server/116698/3 "2020-03-18T19:27:31Z")

</div>

So, if I understood well, one of my choices is to:

1. I move the site to the new server
2. Then, I change the DNS records in order to point the new server.
3. I can wait some days and then I issue the new cert

I didn’t catch the last thing you wrote about _moving a couple of months_

.

---

<div class="post-metadata">

**Author:** ![9peppe](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/9peppe/32/31596_2.png) [@9peppe](https://community.letsencrypt.org/u/9peppe)\
**Post date:** [March 18, 2020, 7:30pm UTC](https://community.letsencrypt.org/t/migrate-website-to-a-new-server/116698/4 "2020-03-18T19:30:55Z")

</div>

> [@yaylitzis](#):
>
> I can wait some days and then I issue the new cert

No, if you want to issue a new certificate on the new server you only need to wait some seconds/minutes after updating your dns records (depends on your dns provider, some need hours).

> [@yaylitzis](#):
>
> I didn’t catch the last thing you wrote about _moving a couple of months_

Next month Ubuntu 20.04 LTS comes out.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [April 17, 2020, 7:30pm UTC](https://community.letsencrypt.org/t/migrate-website-to-a-new-server/116698/5 "2020-04-17T19:30:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
