I'm not entirely familiar with Bitnami, just downloaded the VM to explore a bit as a few people have reported having trouble with it, but I haven't used it on an actual website myself.
Using the webroot plugin would look something like this:
certbot certonly --webroot -w /opt/bitnami/apache2/htdocs -d example.com -d www.example.com --post-hook="/opt/bitnami/ctlscript.sh restart apache"
example.com with your real domain name; remove
-d www.example.com if you don't use the
www subdomain. You might have to change the paths if Bitnami is installed in a different location or you're using a different web root.
If that works, edit the Apache configuration in
/opt/bitnami/apache2/conf. Find these two lines:
and replace them with the following:
example.com with your certificate name. If you don't remember your certificate name, you can find it by typing
Next, restart Apache by typing:
/opt/bitnami/ctlscript.sh restart apache.
At this point, hopefully (if I haven't forgotten anything), the HTTPS version of your website should be up and running.