Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

stefr's avatar
Level 9

Move website with ssl to new server

Hi,

I’m about to move a website from one (forge) server to a new (forge) server. Moving the site (git and database) is easy, but the site has a (LetsEncrypt) SSL certificate installed.

I was thinking to do it like this:

  1. Deploy git and DB on new server
  2. Point DNS to new server
  3. Through Forge get new SSL from Letsencrypt. Done.

Will it be easy like this? I’m not sure LetsEncrypt will provide new SSL certificate for an already existing site? Hope someone can help me out!

0 likes
7 replies
chriss39's avatar

LetsEncrypt should issue a new ssl as long as the domain points to the correct server although I am not 100% sure. I would test it first. Put a new app on current forge server with some subdomain. Issue ssl cert to it. Then put app on new forge server and change dns to point to that and try to issue a new ssl cert.

Shouldn't be an issue but this will ease your mind.

stefr's avatar
Level 9

Thanks @chriss39 I already thought of that. But I don't think it will be the same since I'm requesting a cert for a completely new subdomain in that case.

bashy's avatar

Does Let's Encrypt use the server's hardware? Can't you copy the certs to new server?

stefr's avatar
Level 9

Well... Forge does more than that. It also sets up a script to auto renew. So even if I did, it won't be the same. I've scheduled the migration at tomorrow morning. Will post results here!

Please or to participate in this conversation.