Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: eddiejibson on February 15, 2017, 12:12:52 PM

Title: SSL with Cloudflare (Please read - don't assume I haven't read other posts).
Post by: eddiejibson on February 15, 2017, 12:12:52 PM
Hello,

Relatively new to server management, but have been developing for a few years so it's easier. Anyway, I'm trying to allow SSL on the domains I host on Centos Web panel, I have a premium Cloudflare plan which includes an SSL certificate. It does not provide the actual certificate information, but if I used a different panel such as cPanel, you just type in the HTTPS and it works fine. At the moment, when I'm trying to connect via HTTPS I get this "This site can’t provide a secure connection - mydomain sent an invalid response." how can I do it? Please don't suggest lets encrypt, this is not what I paid to use.

Obviously I can't use the tools like 'Install SSL Certificate' because that's not how Cloudflare works, as you are all aware I'm sure.

Any explanations and steps on how to fix this would be appreciated.

Cheers.
Title: Re: SSL with Cloudflare (Please read - don't assume I haven't read other posts).
Post by: Sandeep on February 15, 2017, 01:54:10 PM
generate CSR (under security) and check the box to create self signed certificate
Title: Re: SSL with Cloudflare (Please read - don't assume I haven't read other posts).
Post by: eddiejibson on February 15, 2017, 02:49:14 PM
I assumed you meant SSL? Tried that, didn't work... Do I have to do anything after that? Suggestions appreciated.
Title: Re: SSL with Cloudflare (Please read - don't assume I haven't read other posts).
Post by: 6Sense on February 19, 2017, 02:37:36 PM
If you don't have to use the SSL cert from Cloudflare you can use the Letsencrypt Manager in CWP instead. It will create and install a free SSL cert for you. It's literally 2 clicks if all goes well (1 click to install Letsencrypt Manager & 1 click to create & install a SSL on your domain.

Then set Cloudflare SSL setting to Full (strict) & you should now have fully functional HTTPS for your site.

You'll also need to ensure all URLs (links & images etc) on your secure pages point to a https://... URL too otherwise you won't get that all important green padlock.

 :)

Title: Re: SSL with Cloudflare (Please read - don't assume I haven't read other posts).
Post by: TheRavenKing on February 19, 2017, 05:53:11 PM
Perhaps it's enough that you use for all images or other urls only // instead of the http:// or https://
Title: Re: SSL with Cloudflare (Please read - don't assume I haven't read other posts).
Post by: martexx on February 23, 2017, 06:01:10 PM
better ask at cloudflare

they do all kinds of magic, your site should just run in http mode and not ssl, cloudflare does that for u

https://www.cloudflare.com/ssl/

Flexible SSL
Flexible SSL encrypts traffic from Cloudflare to end users of your website, but not from Cloudflare to your origin server. This is the easiest way to enable HTTPS because it doesn’t require installing an SSL certificate on your origin. While not as secure as the other options, Flexible SSL does protect your visitors from a large class of threats including public WiFi snooping and ad injection over HTTP.

so it largely depends on your config there