How to Use CloudFlare CDN with an SSL
The easiest way to enable the CloudFlare CDN service to work with your SSL certificate is to upgrade to CloudFlare PLUS.
Doing this, will allow you to enable the SSL support with a single click. To enable the SSL support, you have to go to your CloudFlare Account -> Advanced Settings page and enable it.
The free CloudFlare plan does not provide single-click SSL support. However, there are still two ways you can use SSL with your Free CloudFlare CDN enabled:
1. If your private SSL certificate is valid for a sub-domain (for example, secure.yourdomain.com or shop.yourdomain.com) you can disable CloudFlare for this particular sub-domain name.
The end result is that all visitors who access the SSL protected part of your website will not go to CloudFlare servers.
The rest of the visitors will be able to take advantage of the CloudFlare CDN.However, most of the private SSL certificates are valid for www.yourdomain.com and yourdomain.com.
The question is how to use both your SSL and CloudFlare if your SSL is not issued for a sub-domain name.
2. As you probably know when you enable CloudFlare the system automatically edits your domain's DNS zone.
The DNS CNAME record for www.yourdomain.com is pointed to CloudFlare servers.
This means that you cannot use SSL for your www.yourdomain.com pages.
However, you can still use your SSL for your non-www pages.
The solution is simple - you have to reconfigure your secure SSL pages to use non-www links.
For example, if you have an e-commerce site you can configure the site to use www.yourdomain.com.
After that you can enabled SSL only for your checkout pages and configure them to use non-www links.
For more details how to configure some of the popular applications please check the following articles:
- How to configure Magento to work with a new SSL domain?
- How to configure osCommerce to work with a new SSL domain?
- How to configure Zen Cart to work with a new SSL domain?
- How to configure WordPress to work with a new SSL domain?
If you are unsure how to reconfigure your site feel free to contact our support team.