We just now this very second finished configuring our second bare metal machine and setting up the awesomeness which is Cloudflare Load Balancing.
Problem: www resolves fine and load balancing does work when Proxying is disabled. When we go to enable proxying, www reports a Cipher mismatch in our certificate.
We tried disabling SSL altogether, waited an hour to ensure TTL was met, but www never resolved. As soon as Proxying was re-disabled, www started resolving again.
Our individual hosts are running NodeJS backends reverse proxied through Nginx, with our wildcard certificate on each www host, then CF load balanced by region.
Are we in need of some configuration in Nginx to handle Cloudflare’s proxying?
I setup a monitor for each of our nodes in the load balancer. Made sure the request header Host was set for each node. Waited for a Healthy status and then re-enabled proxying. Immediately we start seeing this error:
When you proxy through Cloudflare, we act as the termination point for SSL traffic - so we present a certificate at our edge. We call these ‘Edge Certificates’. If there is no certificate at our edge, you would see this error.
You need to enable you have your Universal SSL enabled on Cloudflare and that the certificate is present under the SSL/TLS > Edge Certificates section of our dashboard.
Ok so the solution is to use Cloudflare’s certificate or pay $200 a month just so we can use our own certificate that we paid for already? No thanks we will just use the free tier and load balance that way. Our wildcard certificate was expensive so we intend on using it.
You can still use it to encrypt the connection between Cloudflare and your origin server (using full strict SSL) - but it will not be the certificate that is presented the client browser.
Unfortunately the solution if you do want to see that certificate is to disable our proxy or upload it to our edge on business plan. Our Load balancing does still work when you are not proxying through us and does not need to be orange-clouded - so that is good news.