How to install SSL on Drupal
Drupal is an online content management system for publishing web content, available as open source software. It is not server itself but it is an application installed on server. So you need to install SSL certificate on the server of WooCommerce, by following the server specific installation instructions.
1. Your server certificate
This is the certificate you received from the CA for your domain. You may have been sent this via email. If not, you can download it by visiting your Account Dashboard and clicking on your order.
2. Your intermediate certificates
These files allow the devices connecting to your server to identify the issuing CA. There may be more than one of these certificates. If you got your certificate in a ZIP folder, it should also contain the Intermediate certificates, which is sometimes referred to as a CA Bundle. If not, download the appropriate CA Bundle for your certificate.
3. Your private key
This file should be on your server, or in your possession if you generate your CSR from a free generator tool. On certain platforms, such as Microsoft IIS, the private key is not immediately visible to you but the server is keeping track of it.
1. Install your SSL certificate
You’ll need to install the SSL certificate on your server, using instructions from server specific installation instructions.
2. Configure .htaccess
Add the following lines of code in your .htaccess file located in public_html/ or root of your website via FTP editor or cPanel file manager:
<Directory “/path/to/yoursite”> AllowOverride All </Directory>
3. Enable HTTPS by .htaccess file
Redirect all web traffic to https:// Add the code below to your .htaccess file:
<Virtual Host *:80> ServerName example.com Redirect "/" https://example.com/ </VirtualHost> <VirtualHost *:443> ServerName www.example.com # … SSL Configuration Goes Here </VirtualHost>
Congratulations! You’ve successfully installed your SSL certificate! To check your work, visit the website in your browser at https://yourdomain.tld and view the certificate/site information to see if HTTPS/ SSL is working properly. Remember, you may need to restart your server for changes to take effect.