SSL setting using Cloudflare


#1

Recently I started a new website on WordPress and also added cloudflare on this website. Now i want to add ssl certificate on this website using Cloudflare. Please suggest me the steps, how can I add cloudflare https on my website.


#2

hello,

you are looking for which one

cloudflare full ssl
or
cloudflare flexible ssl


#3

Cloudflare flexible ssl.


#4

1st thing is with flexible ssl … do not install ssl on server

Step 1: Configuring CF Under Crypto tab

Enable Flexible SSL

Redirect all http request to https

Fix Mixed Content Issue

Now CF is configured … but will cause infinte loop on WP dashboard

Step 2 Add below code in wp-config.php just before this line /* That's all, stop editing! Happy blogging. */
This will stop infinite loop on dashboard.

 define('FORCE_SSL_ADMIN', true);
// in some setups HTTP_X_FORWARDED_PROTO might contain 
// a comma-separated list e.g. http,https
// so check for https existence
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
       $_SERVER['HTTPS']='on';

Common Mistakes of WordPress users
#5

Did all the things, but it’s not working. Chrome showing ERR_SSL_VERSION_OR_CIPHER_MISMATCH this error. @gulshankumar please help.


#6

Can you please check one thing?

Steps to check

  • Go to Cloudflare
  • Crypto menu
  • Is your SSL active?

#7

Yes, it is active


#8

Okay.

Which Cloudflare SSL mode are you using?

  • Off
  • Flexible
  • Full
  • Full Strict

0 voters


#9

It’s working now. Thanks you.


#11

You’re welcome!


#12

the Universal SSL was disabled.


#13

Why you did? :thinking:


#14

I think, it was done by mistanekly.


#15

sir maine apne blog par free cloudflare ssl iss post ko read karne ke baad lagaya hai. to kya isme bataye gaye ye dono plugin install karne ki jarurat nahi hai ssl ke liye?


#16

I think, it’s correct. Is your loading fine right now?


#17

yes sir… aap thoda review kar lijiye meri site ko aur bataye ki kya improvement karne ki jarurat hai.


#18

I checked every possible thing, looks fine to me.


#19

Bhai kya abhi bhi aapka ssl theek kam kar raha hai ?
maine abhi tak har jagah padha hai ki 2 plugin lgane pdte hain.
Gulshan sir ka tarika ekdm alag hai. aap btao kya abhi bhi sb sahi chl rha hai ?


#20

Because they find plugins a easy way to get this done. Follow Gulshan method and you will never have issues.


#21

Thanks for suggestion. Bro, Have you also applied this method on your blog ?