[Triumf-linux-users] [Triumf-linux-managers] FYI - certbot (was letsencrypt) for CertOS 7, 6

Andrew Daviel advax at triumf.ca
Thu Dec 1 16:40:18 PST 2016


On Thu, 1 Dec 2016, Jess H. Brewer wrote:

> The apache plugin is not working; there may be problems with your existing 
> configuration.
> The error was: NoInstallationError('Cannot find Apache control command 
> apache2ctl',)
>
> There is no apache2ctl on my system, only /usr/sbin/apachectl -- should I go 
> into /usr/sbin/ and symlink apachectl to apache2ctl, or is that 'way too 
> simpleminded?  I thought my SL6.x was TRIUMF-standard.

Just a guess :
.local/share/letsencrypt/lib/python2.6/site-packages/certbot_apache/constants.py
has a switch block
CLI_DEFAULTS_DEFAULT
     version_cmd=['apache2ctl', '-v'],
CLI_DEFAULTS_CENTOS
     version_cmd=['apachectl', '-v'],
CLI_DEFAULTS_GENTOO
     version_cmd=['/usr/sbin/apache2', '-v'],
etc.

It may be that certbot recognizes CentOS, but doesn't recognize SL and 
so uses the default. There's something in
.local/share/letsencrypt/lib/python2.6/site-packages/certbot/util.py
that seems to be looking for release versions but I don't fully 
understand it.
If you can add scientific linux to constants.py and get it to woek, 
maybe we can ask them to patch it upstream.

Andrew


More information about the Triumf-linux-users mailing list