{"id":5838,"date":"2020-09-12T23:14:40","date_gmt":"2020-09-12T17:44:40","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=5838"},"modified":"2026-11-16T12:47:13","modified_gmt":"2026-11-16T07:17:13","slug":"how-to-install-lets-encrypt-ssl-certificate-for-bitnami-wordpress-on-linux","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-install-lets-encrypt-ssl-certificate-for-bitnami-wordpress-on-linux\/","title":{"rendered":"How to install Let&#8217;s Encrypt SSL Certificate for Bitnami WordPress on Linux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong><strong>Post Date:<\/strong><\/strong> September 12, 2020<strong><br><strong>Last Updated:<\/strong> <\/strong>November 16, 2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Securing your WordPress website with an <a href=\"https:\/\/docs.openssl.org\/3.0\/man7\/ssl\/\" target=\"_blank\" rel=\"noopener\">SSL<\/a> certificate is essential for protecting user information, encrypting website communication and building visitor trust. An SSL\/TLS certificate enables HTTPS, ensuring that data exchanged between your website and visitors is encrypted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s Encrypt is a free Certificate Authority (CA) that provides SSL\/TLS certificates for websites. It allows website administrators to secure their websites without purchasing a commercial SSL certificate.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are running WordPress on a Linux server using the Bitnami application stack, you can install a Let&#8217;s Encrypt SSL certificate using the Lego client and configure Apache to use the certificate.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this tutorial, we will explain how to generate, install, configure and renew a free Let&#8217;s Encrypt SSL certificate for a Bitnami WordPress website running on Linux.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before installing the SSL certificate, ensure that you have the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Linux server with Bitnami WordPress installed.<\/li>\n\n\n\n<li>Root or sudo access to the server.<\/li>\n\n\n\n<li>A registered domain name.<\/li>\n\n\n\n<li>DNS A records pointing to your server&#8217;s public IP address.<\/li>\n\n\n\n<li>Ports 80 (HTTP) and 443 (HTTPS) accessible through your firewall.<\/li>\n\n\n\n<li>A valid email address for Let&#8217;s Encrypt registration.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> These instructions cover a traditional Bitnami virtual machine installation using Apache. Commands and certificate paths may differ depending on your Bitnami image and server configuration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Connect to Your Linux Server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First, connect to your Bitnami WordPress server using SSH.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open your terminal and execute the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ssh bitnami@YOUR_SERVER_IP<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>YOUR_SERVER_IP<\/code> with your server&#8217;s public IP address.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are using a root account, you can connect using:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ssh root@YOUR_SERVER_IP<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check the status of the Bitnami services:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo \/opt\/bitnami\/ctlscript.sh status<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command helps identify whether Apache or another web server is running.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Verify Your Domain DNS Configuration<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before requesting an SSL certificate, ensure that your domain points to the correct server IP address.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run the following commands:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dig +short example.com<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dig +short www.example.com<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>example.com<\/code> with your actual domain name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Both domain records should resolve to the correct public IP address of your Bitnami WordPress server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Important:<\/strong> Let&#8217;s Encrypt must be able to validate your domain. Make sure your DNS records are configured correctly and that the required validation ports are accessible.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Install the Lego Client<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Lego is a command-line client that automates the generation and management of Let&#8217;s Encrypt SSL certificates.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Connect to your server and execute the following commands to download the latest Linux AMD64 release:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd \/tmp\n\ncurl -Ls https:\/\/api.github.com\/repos\/go-acme\/lego\/releases\/latest \\\n| grep browser_download_url \\\n| grep linux_amd64 \\\n| cut -d '\"' -f 4 \\\n| wget -i -<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Extract the downloaded archive:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">tar xf lego_v*_linux_amd64.tar.gz<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Create the Let&#8217;s Encrypt directory:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo mkdir -p \/opt\/bitnami\/letsencrypt<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Move the Lego executable into the directory:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo mv lego \/opt\/bitnami\/letsencrypt\/lego<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Verify the installation:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo \/opt\/bitnami\/letsencrypt\/lego --version<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> If you are using a different CPU architecture, download the corresponding Lego release instead of the AMD64 binary.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Generate a Let&#8217;s Encrypt SSL Certificate<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once the Lego client is installed, you can generate an SSL certificate for your WordPress domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, stop the Bitnami services:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo \/opt\/bitnami\/ctlscript.sh stop<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Execute the following command to request the SSL certificate:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo \/opt\/bitnami\/letsencrypt\/lego \\\n--tls \\\n--email=\"admin@example.com\" \\\n--domains=\"example.com\" \\\n--domains=\"www.example.com\" \\\n--path=\"\/opt\/bitnami\/letsencrypt\" run<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the following values:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>admin@example.com<\/code> \u2013 Your valid email address.<\/li>\n\n\n\n<li><code>example.com<\/code> \u2013 Your primary website domain.<\/li>\n\n\n\n<li><code>www.example.com<\/code> \u2013 Your www subdomain.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Accept the Let&#8217;s Encrypt terms of service when prompted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After successful domain validation, the certificate and private key will be generated inside:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/opt\/bitnami\/letsencrypt\/certificates\/<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The generated files will be:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">example.com.crt\nexample.com.key<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>.crt<\/code> file contains the SSL certificate, while the <code>.key<\/code> file contains the private key.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Important:<\/strong> Never share your private key publicly. Keep it protected and accessible only to authorized users.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Configure the SSL Certificate in Apache<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After generating the certificate, configure Apache to use the newly generated SSL certificate.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For Bitnami Apache installations, the certificate files are generally stored in:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/opt\/bitnami\/apache\/conf\/bitnami\/certs\/<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">First, back up the existing certificate and key:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo cp \/opt\/bitnami\/apache\/conf\/bitnami\/certs\/tls.crt \\\n\/opt\/bitnami\/apache\/conf\/bitnami\/certs\/tls.crt.backup\n\nsudo cp \/opt\/bitnami\/apache\/conf\/bitnami\/certs\/tls.key \\\n\/opt\/bitnami\/apache\/conf\/bitnami\/certs\/tls.key.backup<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the existing certificate and key references with symbolic links to the new Let&#8217;s Encrypt files:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo ln -sf \/opt\/bitnami\/letsencrypt\/certificates\/example.com.crt \\\n\/opt\/bitnami\/apache\/conf\/bitnami\/certs\/tls.crt\n\nsudo ln -sf \/opt\/bitnami\/letsencrypt\/certificates\/example.com.key \\\n\/opt\/bitnami\/apache\/conf\/bitnami\/certs\/tls.key<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>example.com<\/code> with your actual domain name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Protect the private key:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo chown root:root \/opt\/bitnami\/letsencrypt\/certificates\/example.com.key\n\nsudo chmod 600 \/opt\/bitnami\/letsencrypt\/certificates\/example.com.key<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> These paths apply to the documented Bitnami Apache stack. Verify your Apache certificate configuration before replacing existing files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Configure HTTP to HTTPS Redirection<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After installing the SSL certificate, configure your website to redirect HTTP traffic to HTTPS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open the Bitnami Apache configuration file:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo nano \/opt\/bitnami\/apache\/conf\/bitnami\/bitnami.conf<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Locate the appropriate HTTP virtual host configuration and add the following rewrite directives inside the HTTP virtual host:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">RewriteEngine On\nRewriteCond %{HTTPS} !=on\nRewriteRule ^\/(.*)$ https:\/\/example.com\/$1 [R=301,L]<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>example.com<\/code> with your preferred primary domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Save the configuration file and exit the editor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Important:<\/strong> Ensure the HTTPS virtual host is correctly configured and the certificate covers the requested domain before enabling redirection. If your installation already has HTTPS redirection configured, avoid adding duplicate rules.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 7: Restart Apache and Verify the SSL Certificate<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After completing the configuration, start the Bitnami services:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo \/opt\/bitnami\/ctlscript.sh start<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check the Apache service status:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo \/opt\/bitnami\/ctlscript.sh status<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can also check the Apache configuration syntax:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo \/opt\/bitnami\/apache\/bin\/apachectl -t<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If the configuration is correct, Apache should return:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Syntax OK<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now open your website in a browser:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">https:\/\/example.com<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Verify the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The website loads successfully over HTTPS.<\/li>\n\n\n\n<li>The browser displays a secure connection.<\/li>\n\n\n\n<li>The SSL certificate is valid.<\/li>\n\n\n\n<li>Both www and non-www domain names work as expected.<\/li>\n\n\n\n<li>HTTP requests redirect to HTTPS.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 8: Configure Automatic SSL Certificate Renewal<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s Encrypt certificates have a limited validity period. Therefore, you should configure automatic renewal to prevent your SSL certificate from expiring.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/09\/Automatic-SSL-Renewal-for-Bitnami-WordPress.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/09\/Automatic-SSL-Renewal-for-Bitnami-WordPress-1024x683.png\" alt=\"Let's Encrypt SSL certificate installation and automatic renewal for Bitnami WordPress on Linux\" class=\"wp-image-13451\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/09\/Automatic-SSL-Renewal-for-Bitnami-WordPress-1024x683.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/09\/Automatic-SSL-Renewal-for-Bitnami-WordPress-300x200.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/09\/Automatic-SSL-Renewal-for-Bitnami-WordPress-768x512.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/09\/Automatic-SSL-Renewal-for-Bitnami-WordPress-272x182.png 272w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/09\/Automatic-SSL-Renewal-for-Bitnami-WordPress.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Create a renewal script:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo nano \/opt\/bitnami\/letsencrypt\/renew-certificate.sh<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following commands:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#!\/bin\/bash\n\nsudo \/opt\/bitnami\/ctlscript.sh stop apache\n\nsudo \/opt\/bitnami\/letsencrypt\/lego \\\n--tls \\\n--email=\"admin@example.com\" \\\n--domains=\"example.com\" \\\n--domains=\"www.example.com\" \\\n--path=\"\/opt\/bitnami\/letsencrypt\" renew --days 90\n\nsudo \/opt\/bitnami\/ctlscript.sh start apache<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the email address and domain names with your actual details.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Save the file and provide executable permissions:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo chmod +x \/opt\/bitnami\/letsencrypt\/renew-certificate.sh<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Open the root user&#8217;s crontab:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo crontab -e<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following entry to schedule the renewal script:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">0 0 1 * * \/opt\/bitnami\/letsencrypt\/renew-certificate.sh<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This schedules the script to run at midnight on the first day of every month.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Important:<\/strong> Test the renewal process before relying on the scheduled job. Configure error logging and ensure Apache is restarted even if renewal fails. Monitor the certificate expiry date regularly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Installing a Let&#8217;s Encrypt SSL certificate on Bitnami WordPress is an effective way to secure your website without purchasing a commercial SSL certificate.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By following the steps in this guide, you can generate a certificate, configure Apache, enable HTTPS redirection and schedule certificate renewal on your Linux server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Regular SSL certificate monitoring and renewal are important for maintaining website security and ensuring uninterrupted HTTPS access.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you encounter SSL installation or configuration issues, verify your DNS settings, firewall rules, Apache configuration and certificate file permissions before troubleshooting further.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions (FAQs)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Is Let&#8217;s Encrypt SSL certificate free for Bitnami WordPress?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. Let&#8217;s Encrypt provides free SSL\/TLS certificates that can be installed on Bitnami WordPress servers. You can use these certificates to enable HTTPS and encrypt communication between your website and visitors.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. How long is a Let&#8217;s Encrypt SSL certificate valid?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s Encrypt certificates have a validity period of 90 days. You should configure automatic renewal and regularly monitor the certificate expiry date to avoid HTTPS connection errors.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. How can I fix a Let&#8217;s Encrypt SSL certificate installation error?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">First, check whether your domain DNS records point to the correct server IP address. Then verify that ports 80 and 443 are accessible, Apache is configured correctly, and the certificate and private key files are valid. Check the server logs for additional error details.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-install-update-wordpress-automatically-without-using-ftp\/\">How to Install \/ Update WordPress Automatically Without Using FTP<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/fixedyour-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress\/\">Fixed:Your PHP installation appears to be missing the MySQL extension which is required by WordPress.<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Need Help Installing an SSL Certificate on Your WordPress Website?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Are you looking to secure your Bitnami WordPress website with a free Let&#8217;s Encrypt SSL certificate?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/shared-hosting\/\">Pheonix Solutions<\/a> provides reliable WordPress hosting, SSL certificate installation, Linux server administration, website management, and technical support.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our team can help you install and configure SSL certificates, enable HTTPS redirection, troubleshoot Apache SSL configuration issues, automate certificate renewal, and improve your website security.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/contact\/\">Get in touch with our team<\/a> to discuss your WordPress security requirements and get professional technical assistance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post Date: September 12, 2020Last Updated: November 16, 2026 Introduction Securing your WordPress website with an SSL certificate is essential [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":13468,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1024],"tags":[425],"class_list":["post-5838","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","tag-lets-encrpyt-ssl","psol-cat-security"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1wa","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/09\/Lets-Encrypt-SSL-on-Linux.png","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=5838"}],"version-history":[{"count":2,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5838\/revisions"}],"predecessor-version":[{"id":13476,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5838\/revisions\/13476"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media\/13468"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=5838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=5838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=5838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}