I've spent a week troubleshooting this problem.
Every site needs its own dedicated IP. I cannot have all using the same root IP.
Here a couple more outputs. (I used the placeholder `555.55...` in the IPs in this post to maintain privacy.)
where 55.555.2.250 is my root IP.
The above IPs are the /28 subnet. These are the IPs I'm trying to use for the other domains.
Where 55.555.2.249 is the gateway for the /30 subnet of the root IP.
Where the UUID is the correct one, `xxxx` was used as a placeholder.
Old DNS A record:
New DNS A record:
After restarting httpd, doing `rebuildinstalledssldb` and `buildhttpdconf`, and restarting server, the server is serving the SSL certificate for `host.domain.com` which is the hostname of the server (resulting in a "`not trusted, we couldn't identify since the SSL is for host.domain.com and not example.com`", despite the certificate for `example.com` being successfully installed on the server.
But, if I change the IP for `example.com` back to the root IP `55.555.2.250`, then the correct and valid SSL certificate is served and the website goes back to the green "Trusted".
How to solve this problem?
- fresh server install.
- one /30 subnet as root ip, and one /28 subnet installed.
- all has been running for a week, so propagation is not the issue.
- ipv4
- Attempts to delete all certificates for that domain and install a new one (valid let's encrypt cert) have no effect, the new certificate is also not being served.
- Attempts to delete all certificates from the server does not work, it still shows the server certificate on the "insecure" page when visiting the site (instead of the domain's cert).
- restarting server, httpd, and rebuildinstalledssldb and buildhttpdconf all have no effect.
Every site needs its own dedicated IP. I cannot have all using the same root IP.
Here a couple more outputs. (I used the placeholder `555.55...` in the IPs in this post to maintain privacy.)
Code:
# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
55.555.2.250 host.domain.com
Code:
# cat /etc/ips
55.555.7.79:255.255.255.240:55.555.7.93
55.555.7.80:255.255.255.240:55.555.7.93
55.555.7.81:255.255.255.240:55.555.7.93
55.555.7.82:255.255.255.240:55.555.7.93
55.555.7.83:255.255.255.240:55.555.7.93
55.555.7.84:255.255.255.240:55.555.7.93
55.555.7.85:255.255.255.240:55.555.7.93
55.555.7.86:255.255.255.240:55.555.7.93
55.555.7.87:255.255.255.240:55.555.7.93
55.555.7.88:255.255.255.240:55.555.7.93
55.555.7.89:255.255.255.240:55.555.7.93
55.555.7.90:255.255.255.240:55.555.7.93
55.555.7.91:255.255.255.240:55.555.7.93
55.555.7.92:255.255.255.240:55.555.7.93
Code:
# cat /etc/sysconfig/network
# Created by anaconda
HOSTNAME=host.domain.com
GATEWAY=55.555.2.249
Code:
# cat /etc/sysconfig/network-scripts/ifcfg-eno1
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="static"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="eno1"
UUID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"
DEVICE="eno1"
NM_CONTROLLED="no"
ONBOOT="yes"
IPADDR="55.555.2.250"
PREFIX="30"
GATEWAY="55.555.2.249"
NETMASK="255.255.255.252"
IPV6_PRIVACY="no"
DNS1="8.8.8.8"
DNS2="8.8.4.4"
Old DNS A record:
Code:
www.example.com IN CNAME example.com
example.com IN A 55.555.2.250
Code:
www.example.com IN CNAME example.com
example.com IN A 55.555.7.81
But, if I change the IP for `example.com` back to the root IP `55.555.2.250`, then the correct and valid SSL certificate is served and the website goes back to the green "Trusted".
How to solve this problem?
Last edited: