# Changing server domain

**URL:** <https://community.letsencrypt.org/t/changing-server-domain/63608>\
**Category:** Server\
**Created:** [June 4, 2018, 5:06pm UTC](https://community.letsencrypt.org/t/changing-server-domain/63608 "2018-06-04T17:06:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoseBenitez](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@JoseBenitez](https://community.letsencrypt.org/u/JoseBenitez)\
**Post date:** [June 4, 2018, 5:06pm UTC](https://community.letsencrypt.org/t/changing-server-domain/63608/1 "2018-06-04T17:06:03Z")

</div>

Hi everybody.

I have, running a domain server A [www.example.com](http://www.example.com) . I’m preparing now a Server B for this domain. When the server will be ready I want stop server A and run server B [www.example.com](http://www.example.com).

Anybody can send me a link to know how to do this?

Thanks in advanced and regards.

---

<div class="post-metadata">

**Author:** ![schoen](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/schoen/32/79_2.png) [@schoen](https://community.letsencrypt.org/u/schoen)\
**Post date:** [June 4, 2018, 5:08pm UTC](https://community.letsencrypt.org/t/changing-server-domain/63608/2 "2018-06-04T17:08:28Z")

</div>

Hi @JoseBenitez,

This question isn’t appropriate for this forum. Maybe try Server Fault?

> **[Server Fault](https://serverfault.com/)**
>
> Q&A for system and network administrators

You’ll probably be able to do this simply by changing the DNS record for `www.example.com` to point to the IP address of server B at the appropriate time.

---

<div class="post-metadata">

**Author:** ![JoseBenitez](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@JoseBenitez](https://community.letsencrypt.org/u/JoseBenitez)\
**Post date:** [June 4, 2018, 5:28pm UTC](https://community.letsencrypt.org/t/changing-server-domain/63608/3 "2018-06-04T17:28:09Z")

</div>

Sorry, the question is incomplete.

I mean how to pass the certificates from one server to another.

Because if in the new server I try to create the old certificates I get a error and I cannot delete de certificates in the old server because it is yet in production.

Thanks for your answer and regards.

---

<div class="post-metadata">

**Author:** ![schoen](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/schoen/32/79_2.png) [@schoen](https://community.letsencrypt.org/u/schoen)\
**Post date:** [June 4, 2018, 7:28pm UTC](https://community.letsencrypt.org/t/changing-server-domain/63608/4 "2018-06-04T19:28:26Z")

</div>

Oh, I see! So that is relevant to this forum after all.

Certificates are not specific to the machine where they were issued, so you should be able to copy them over using a tool like `rsync`. They can be installed and used on more than one machine at a time.

If you use Certbot specifically, please be sure to copy everything in `/etc/letsencrypt`, including symbolic links, in order to allow automated renewal to continue to work properly on the new system.

(If, for some reason, you need to issue new certificates directly on a machine that isn’t yet pointed to by the DNS name that the certificates will refer to, you can also use Let’s Encrypt’s DNS-01 challenge method to issue the certificates, which doesn’t require you to receive an inbound connection from the Let’s Encrypt CA during verification. It does require you to be able to create DNS TXT records in the associated DNS zone, normally using a DNS provider API.)

---

<div class="post-metadata">

**Author:** ![JoseBenitez](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@JoseBenitez](https://community.letsencrypt.org/u/JoseBenitez)\
**Post date:** [June 4, 2018, 11:07pm UTC](https://community.letsencrypt.org/t/changing-server-domain/63608/5 "2018-06-04T23:07:39Z")

</div>

Thank for your answer Shoen

Now I need study how to implement what you told me.

Thanks & regards.

---

<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:** [July 4, 2018, 11:07pm UTC](https://community.letsencrypt.org/t/changing-server-domain/63608/6 "2018-07-04T23:07:44Z")

</div>

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