Use Let's Encrypt to Renew SSL Certificates

Let's Encrypt is a third-party free SSL provider authority. Debugging issues with Let's Encrypt SSL generation or renewal are outside FileCloud's scope. This document only covers the changes that need to be made in the FileCloud .htaccess file to allow URL access. 

To use Let's Encrypt's HTTP-01 challenge for adding/renewing SSL certificates:

  1. Open the following file:
    • Windows:  C:\xampp\htdocs\.htaccess
    • Linux: /var/www/html/.htaccess
  2. Find the following code:

    #--------------------------------------------------
    # Let's Encrypt Support
    # RewriteRule ^.well-known/(.*)$ .well-known/$1 [L]
    #--------------------------------------------------
  3. Remove # in front of:
    RewriteRule ^.well-known/(.*)$ .well-known/$1 [L]

    so that the code appears as:

    #--------------------------------------------------
    # Let's Encrypt Support
    RewriteRule ^.well-known/(.*)$ .well-known/$1 [L]
    #--------------------------------------------------
  4. Save and close .htaccess.

  5. Use certbot to renew your certificates. For instructions, see https://certbot.eff.org/instructions.