I have the following server setup:
+----------+ +-----------+
| | | |
internet -----> | Kong | -----> | HAProxy | -----> backend servers
| | | |
+----------+ +-----------+
- Kong is set port 443 binding with a valid SSL cert
- HAProxy is set up with port 443 binding and a redirect from port 80 to 443
Now I just found that the SSL cert installed in the HAProxy expired. However, it's not visible through the internet because they access through Kong and Kong has a valid SSL cert. Accessing the HAProxy directly gives a SSL certificate problem: certificate has expired
error. What is the explanation for this? How does the first layer of reverse proxy's SSL cert suppress the error on the second layer?