CodeIgniter Forums
Installation of Letsencrypt SSL on Bitnami Stack - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Installation of Letsencrypt SSL on Bitnami Stack (/showthread.php?tid=77585)



Installation of Letsencrypt SSL on Bitnami Stack - trentada - 09-20-2020

Hi Guys,

I am trying to install the Letsencrypt free SSL on my test server but I am getting a problem with the automatic validation of the server is failing and I think it might be due to the way CodeIgniter server the document root. 

As per the doco here: https://docs.bitnami.com/general/how-to/understand-bncert/#certificates-not-renewed-automatically

It mentions to create a new folder and then map it to the wep server. I have done that but when I test it from the front-end I get the infamous error message:

"You don't have permission to access /.well-known/ on this server."

Hence, I don't believe Letenscrypt will be able to validate my domain.

How can I serve a folder outside the document root via CodeIgniter for validation purposes?

Kind Regards
Trent


RE: Installation of Letsencrypt SSL on Bitnami Stack - jreklund - 09-20-2020

The ".well-known" folder should be created alongside your index.php if you are using HTTP verification.

If it doesn't work, you need to open your .htaccess if you are using Apache and exclude that folder from the . blocking rule.


RE: Installation of Letsencrypt SSL on Bitnami Stack - trentada - 09-20-2020

Thanks for your quick response. I tried what you said but it didn't work. I had a look at my .htaccess file but there's no blocking rules in there:

RewriteEngine on
RewriteCond $1 !^(index\.php|public|\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1

<IfModule mod_php5.c>
php_value upload_max_filesize 10M
php_value post_max_size 10M
</IfModule>
#test pickup