Monday, November 12, 2018

Install SSL Certificate on Amazon Bitnami Wordpress Website

How to Get A Free SSL Certificate and How to Install It

SSL Certificates Should Be Free For Everyone

Let's Encrypt and SSL For Free are two of the most famous free SSL services out there, with your new Amazon EC2 Bitnami Wordpress virtual machine, you now need an SSL Certificate. Get your free certificate at, install it like a boss the hardway using the SSH command line.  In our knowledge base story regarding 31 Tips for Your First Business Website, our advice is to install an SSL Certificate immediately.  Amazon EC2 Bitnami Wordpress is another great way to get a free website, free of hosting charges. We have a list of free hosting options here. You must run it on the free tier.

Breaking News for June 2020

SSL For Free is retired and now obsolete.  It has been bought out by comodo. You can only get 3 free certs now.  My recommendation is to use Certbot to automate your certificate renewals thru lets' encrypt. Here's a great how to guide for Amazon ECS bitnami. How to use Certbot with bitnami's own basterdized apache webserver.  Here's a great introduction to Lets Encrypt.

Where is Wordpress located

Its right here:  /home/bitnami/apps/wordpress/htdocs

How to Install Your Free SSL Certificate on Amazon/Bitnami WordPress

FYI: Bitnami Wordpress on Amazon EC2 uses Ubuntu 16.04
Here's how to manually install a free LetsEncrypt ssl certificate

Go here and register for a free account

Add the ACME challenge TXT records to your domain DNS as instructed.

Logon to your EC2 machine using SSH, then change directory to: /opt/bitnami/apache2/conf/ then you will find the SSL certificate files. in this directory:  /opt/bitnami/apache2/conf/ you will find server.crt and server.key.
ssh console screenshot
This directory holds the SSL cert and private key files

The use sudo and vim to copy + paste in the server certificate and the private key file. Insert the certificate and key into these files, the server.csr is a request file.
ssh console screenshot
Use vim with sudo to edit
The restart the services.
ssh console screenshot
Then restart the services

Stop and Start the services
/etc/init.d/bitnami stop
/etc/init.d/bitnami start

root@ip-172-30-0-99:/opt/bitnami/apache2/conf/bitnami# ll /opt/bitnami/apache2/conf/
total 316
drwxr-xr-x  6 bitnami root   4096 Nov 13 07:09 ./
drwxr-xr-x 14 root    root   4096 Aug 15 10:43 ../
drwxr-xr-x  2 bitnami root   4096 Nov 13 07:09 bitnami/
-rw-r--r--  1 bitnami root    289 Aug 15 10:43 deflate.conf
drwxr-xr-x  2 bitnami root   4096 Aug 15 10:40 extra/
-rw-r--r--  1 bitnami root  20192 Nov 13 06:34 httpd.conf
-rw-r--r--  1 bitnami root  13077 Jul 30 15:17 magic
-rw-r--r--  1 bitnami root  60847 Jul 30 15:17 mime.types
-rw-r--r--  1 bitnami root   7413 Aug  2  2012 modsecurity.conf
drwxr-xr-x  3 bitnami root   4096 Aug 15 10:40 original/
-rw-r--r--  1 bitnami root  17447 Aug 15 10:43 pagespeed.conf
-rw-r--r--  1 bitnami root 141034 Aug 15 10:40 pagespeed_libraries.conf
-rw-r--r--  1 bitnami root    199 Aug 15 10:41 php-fpm-apache.conf
-rw-r--r--  1 bitnami root   1834 Nov 12 03:50 privkey.pem
drwxr-xr-x  2 root    root   4096 Nov 13 07:05 saved.d/
-rw-r--r--  1 root    root   1968 Nov 13 07:06 server.crt
-rw-r--r--  1 root    root    985 Nov 12 03:50 server.csr
-rw-r--r--  1 root    root   1704 Nov 13 07:06 server.key
-rw-r--r--  1 bitnami root    203 Aug 15 10:42 ssi.conf

Many Thanks To
This Tech Tidbit was brought to you by your friends at Eleven Dimensions Computer Technologies.
See our new 11D website at:

Our Partner Websites:

Bare Wire Networks:
CTI Solutions:

Many Thanks to Our Partner companies

No comments:

Post a Comment