Search code examples
sslhttpsdnssubdomain

Adding an "A" Record as a subdomain to an IP removes HTTPS?


We have a domain name (e.g https://example.org) that hosts a website, and we want to have a subdomain (https://app.example.org) that will run a certain service.

  • That service is a different website that resides on a totally different server.

  • I have added an "A" Record in the domain's DNS that points the subdomain to the IP of the other server.

  • When trying to access "https://app.example.org", I get a warning message saying that this website is not secure (normal http works)

  • Accessing the top-level domain via HTTPS works normally.

What needs to be done in-order to have the subdomain secured when using an "A" Record?

Is it something that needs to be done on the new server or in the domain's cPanel?

Thank you for any help.


Solution

  • You will have to make sure that your SSL certificate is wildcard certificate and Certificate is also installed on other server as well, where you are pointing your subdomain.