I am trying to set up SSL certificate for my url. It is working as expected wothout the port numbers but I am getting SSL related error if I specify port. I tried with permitted ports 2052 (HTTP) and 2053 (HTTPS). I am getting errors ERR_SSL_PROTOCOL_ERROR (FOR http PORT), Invalid SSL certificate (for https port). See screenshot below, I can include only one.
*Was the site working with SSL prior to adding it to Cloudflare? No
*Have you tried from another browser and/or incognito mode? Yes, same error
Are you suggesting I might be running two webservers on same IP? That could explain HTTPS port 2053 error but why will I have problem with HTTP port 2052. I am using flexible encryption.
That approach is unlikely to work, as Flexible does not use SSL, while Full (Strict) requires a valid certificate. Both have completely different requirements.
It really doesn’t matter whether you have different webservers or different configurations. Each needs to have the correct certificate configured.
The simplest way is to pause Cloudflare, make sure your site loads fine with SSL, and then reactivate Cloudflare.
Port 2052 and 2053 are forwarded to internal port 2342. I have openmediavault running on default port and photoprism on 2342, as a plugin. Both are accessible internally and through other non SSL url. But when I am using cloudflare certified URL, I am only able to run the default port.
My understanding is that flexible encryption will let you have https url without the SSL, and my default https url is working fine without SSL. Maybe it is a bad idea but my question is why the url won’t work when I provide a port number, what extra steps I need to take to make it work.
As mentioned by @epic.network and @Laudian you shouldnt use that insecure legacy mode in the first place as it will (evidently) break your site and drop all security.
Bottom line, your site needs to work fine on SSL before you use Cloudflare.