How to configure cloudflare SSL with Apache

To configure Cloudflare Full Strict certificate into Apache, you can follow these steps:

  1. Download the Cloudflare Origin CA certificate: First, you need to download the Cloudflare Origin CA certificate from your Cloudflare account. You can do this by navigating to the “SSL/TLS” section of your Cloudflare dashboard and selecting the “Origin Server” tab. From there, you can download the certificate in either PEM or DER format.
  2. Install the Cloudflare Origin CA certificate on your Apache server: Once you have downloaded the certificate, you need to install it on your Apache server. You can do this by copying the certificate file to a directory on your server (such as /etc/ssl/certs/) and then adding an SSLCertificateFile directive to your Apache virtual host configuration file. For example

SSLCertificateFile /etc/ssl/certificate/cloudflare/yumaapp.pem
SSLCertificateKeyFile /etc/ssl/certificate/cloudflare/yumaapp.key

  • Configure your Apache virtual host for SSL: Next, you need to configure your Apache virtual host for SSL. You can do this by adding the appropriate SSL directives to your virtual host configuration file. For example
<VirtualHost *:443>
    ServerName example.com
    DocumentRoot /var/www/example.com
    SSLEngine On
    SSLCertificateFile /etc/ssl/certificate/cloudflare/yumaapp.pem
    SSLCertificateKeyFile /etc/ssl/certificate/cloudflare/yumaapp.key

</VirtualHost>

Restart Apache: After you have configured your Apache virtual host for SSL, you need to restart Apache to apply the changes. You can do this by running the following command:

systemctl restart apache2

#Yumatechnology:- Yuma Technology Provides Mobile app, E-commerce solutions, integrated EPOS, Website design, Social media marketing, CRM, Bespoke software solutions.

We are Luton, Bedfordshire based local software company, providing 24/7 Software support and solution.

Find us on 

https://www.facebook.com/yumatechnology
https://www.linkedin.com/company/yuma-technology-ltd/

Other products

https://redmango.online/