Transferred server, Now SSL not working

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: www.bayambangsystems.com

I ran this command: None. I just copied (tar) /etc/letsencrypt folder from old host to new

It produced this output: Now, without SSL, the website is reachable, but https not working

My web server is (include version): Apache2, Ubuntu 20.04 using virtual hosts

The operating system my web server runs on is (include version): Ubuntu 20.04

My hosting provider, if applicable, is: Azure

I can login to a root shell on my machine (yes or no, or I don't know): Yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): No

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): Certbot 0.40.0

2 Likes

What do you mean with "https not working"? Which error message(s) do you get?

3 Likes

I see it https trying to reach your login page at
https://www.bayambangsystems.com/hr/users/login
but fails to connect.

http://www.bayambansystems.com does take you to the login page okay (but not secure).

2 Likes

You will also need to update your Apache configuration (e.g. /etc/apache2).

If your tar method preserved symbolic links, then Certbot on the new machine should be able to use the copy of /etc/letsencrypt to renew your certificates in the future.

2 Likes

I did this

tar zpcvf backup_etc-{date}.tar.gz /etc/letsencrypt/

I also copied a www.bayambangsystems.com-le-ssl.conf file from old server's /etc/apache2/sites-available manually. meaning I copied the text within it and copied it to same file name in new server.

What other files do I need to fix?

My website has some components that require https to run.

Thank you in advance.

1 Like

This site can’t be reached

www.bayambangsystems.com refused to connect.

I changed the base url just to try if the application routing and database connection work. But everything should be working through https, which was my previous setup.

1 Like

Ricky via Let's Encrypt Community Support writes:

I also copied a www.bayambangsystems.com-le-ssl.conf file from old server's /etc/apache2/sites-available manually. meaning I copied the text within it and copied it to same file name in new server.

What other files do I need to fix?

Use a2ensite to enable that site (creating a symlink in sites-enabled).

2 Likes

I just saw a post about reinstalling the certificate via the original route of sudo certbot --apache.

I tried it and chose Option 1. Everything worked! That was so much easier than transferring files.

Do I need to do anything with my old VM, which I will be deleting?

1 Like

Nope!

If you used a different arrangement of names and certificates, you will eventually get expiry notices by e-mail when you don't replace a past certificate with an exactly equivalent one. If your new server is working properly the way you expect, including renewing your certificates, you can ignore these.

1 Like

A post was split to a new topic: Switched hosting provider from Hostinger to Hostgator

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