Security is always a primary concern to all who runs their businesses on the cloud and it is no different with Non-profit organizations. Even if we are giving our software and services for free, they will not take the solution if they are not convince that their data is secured on the cloud.
With this security requirement, the team are evaluating SSL certificate provider options to ensure our data transmission to all our instances production, staging or development will work only in HTTPS. We started with self-sign certificate and while it helps but it started to introduce new user stories to and setup instructions to make it work.
websit
Saiful pointed out Let's Encrypt (LE) to the team and after learning about it a little more, we decided to give it a go. Below are some of the useful tips and links that are useful to install Let's Encrypt certificate.
Let's encrypt uses an agent to install and setup the necessary directory, files, creation of scripts etc using the certbot program. Make sure you have your webserver and OS info handy so that the specific instructions can be given. We use Apache On Debian 7 and the instructions can be found here.
Since our instances grew out from Bitnami, there is a rather "defunct" documentation on "How to install the Let's Encrypt Client". Follow each step but change the command using certbot.
Command to run: ./certbot certonly --webroot -w [your webroot] -d [your domain]
In Bitnami's CiviCRM setup, the command will be:
./certbot certonly --webroot -w /opt/bitnami/apps/civicrm/htdocs -d www.voiddeck.sg
In the process, LE will be creating a hidden directory (starts with a '.') and will try to access it. By default, you will NOT get access to this because of a configuration that blocks all access to a hidden directory. Disable this for while before running the "certbot" program.
Go to: /opt/bitnami/apps/civicrm/conf/htaccess.conf and comment the line "RewriteRule....." [Remember to uncomment after the cert installation]
You can find all the files created by the certbot in the /etc/letsencrypt/live/[whatever DOMAIN name you put during creation]/ directory. Copy them to a directory where you keep your certs as below and use any names that you want.
Note: To make sure it works on mobile browser, copy the fullchain.pem file as well and add it to the configuration as shown below.

Final touch:
Points to the certificates that you have created. Go to /opt/bitnami/apache2/conf/bitnami.conf and add the 3 lines that starts with SSLCertificate* as shown below. RESTART Apache and BOOM !!!




No comments:
Post a Comment