Phanix
Phanix

Just writing

Installing certbot apache plugin with non-default version number / installing certbot apache plugin with non-default version number

In most cases, installing the default version can be done normally and painlessly, but sometimes you will encounter different situations.

Because there is a server to install the route53 plugin before , and then install the default version, the download has not been successful, the solution is to update the certbot version. But when I wanted to install the apache plugin, I found the default version of apt-get install, and no error message appeared, but when I actually executed certbot –apache, an error message appeared saying that there was no apache plugin, and I found that although there was no error message during installation , but in fact the apache plugin cannot work (equivalent to installation failure), it turns out that it is because of the wrong version number. Check the installed plugins, there is really no apache plugin there.

 $ sudo certbot plugin
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* dns-route53
Description: Obtain certificates using a DNS TXT record (if you are using AWS
Route53 for DNS).
Interfaces: IAuthenticator, IPlugin
Entry point: dns-route53 = certbot_dns_route53.dns_route53:Authenticator

* standalone
Description: Spin up a temporary webserver
Interfaces: IAuthenticator, IPlugin
Entry point: standalone = certbot._internal.plugins.standalone:Authenticator

* webroot
Description: Place files in webroot directory
Interfaces: IAuthenticator, IPlugin
Entry point: webroot = certbot._internal.plugins.webroot:Authenticator
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

The solution is to specify the apache plugin version to install through pip3. ( reference )

 $ sudo pip3 install certbot_apache==0.40.1

But at this time, another error message will be sprayed, saying that the acme version is wrong

 ERROR: certbot 1.0.0 has requirement acme>=0.40.0, but you'll have acme 0.31.0 which is incompatible.

I had to upgrade acme first, and then install the apache plugin

 $ sudo pip3 install acme==0.40.1

After checking the plugin, you can find that the apache plugin is installed normally, and then you can use –apache -d to apply for ssl credentials.

 $ sudo certbot plugin
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* apache
Description: Apache Web Server plugin
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache.entrypoint:ENTRYPOINT

* dns-route53
Description: Obtain certificates using a DNS TXT record (if you are using AWS
Route53 for DNS).
Interfaces: IAuthenticator, IPlugin
Entry point: dns-route53 = certbot_dns_route53.dns_route53:Authenticator

* standalone
Description: Spin up a temporary webserver
Interfaces: IAuthenticator, IPlugin
Entry point: standalone = certbot._internal.plugins.standalone:Authenticator

* webroot
Description: Place files in webroot directory
Interfaces: IAuthenticator, IPlugin
Entry point: webroot = certbot._internal.plugins.webroot:Authenticator
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Original link: Phanix's Blog

CC BY-NC-ND 2.0

Like my work?
Don't forget to support or like, so I know you are with me..

Loading...

Comment