I was trying to see if I could get certbot working with bitnami since we’ve had a couple threads regarding it, and I’m having trouble convincing certbot that its Apache installation is not set up like the Debian package, even though it is running on Debian.
bitnami@bitnami-lampstack-dm-4780:~$ certbot --version # installed from jessie-backports
certbot 0.10.2
bitnami@bitnami-lampstack-dm-4780:~$ sudo certbot --apache --apache-server-root=/opt/bitnami/apache2/ --apache-handle-sites=False --apache-handle-modules=False
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Directory '/opt/bitnami/apache2/sites-enabled' does not exist. Please ensure that the values for --apache-handle-sites and --apache-server-root are correct for your environment.
I did try several variations of False (lowercase, 0, no). What am I doing wrong?
These features don’t appear to be implemented at all in current Certbot. Is it possible that they were earlier features that were removed or renamed and that the documentation hasn’t been updated to reflect that?
Edit: Never mind, I was grepping for the wrong thing because of how plugins work. There is indeed an implementation for these features.
So the python-certbot-apache dpkg drags in apache2 which confuses things a bit.
With certbot-auto I get a different error:
bitnami@bitnami-lampstack-dm-4780:~$ sudo ./certbot-auto --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log Failed to find executable apache2ctl in PATH: /opt/bitnami/git/bin:/opt/bitnami/varnish/bin:/opt/bitnami/sqlite/bin:/opt/bitnami/php/bin:/opt/bitnami/mysql/bin:/opt/bitnami/apache2/bin:/opt/bitnami/common/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Cannot find Apache control command apache2ctl',)
bitnami@bitnami-lampstack-dm-4780:~$ sudo ./certbot-auto --apache --apache-server-root=/opt/bitnami/apache2/ --apache-handle-sites=False --apache-handle-modules=False
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Failed to find executable apache2ctl in PATH: /opt/bitnami/git/bin:/opt/bitnami/varnish/bin:/opt/bitnami/sqlite/bin:/opt/bitnami/php/bin:/opt/bitnami/mysql/bin:/opt/bitnami/apache2/bin:/opt/bitnami/common/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Cannot find Apache control command apache2ctl',)
bitnami@bitnami-lampstack-dm-4780:~$ ls /opt/bitnami/apache2/bin
ab envvars-std htdigest.bin logresolve.bin
ab.bin fcgistarter htpasswd pagespeed_js_minify
apachectl fcgistarter.bin htpasswd.bin pagespeed_js_minify.bin
apxs htcacheclean httpd rotatelogs
checkgid htcacheclean.bin httpd.bin rotatelogs.bin
checkgid.bin htdbm httxt2dbm
dbmmanage htdbm.bin httxt2dbm.bin
envvars htdigest logresolve
So I think it’s safe to say that bitnami is not supported with certbot at the present time. I’ve filed an issue with what I found in case somebody wants to fix it someday: