安装非预设版号certbot apache plugin / installing certbot apache plugin with non-default version number
IPFS
在大部分情况下安装预设版本都可以正常无痛完成,但有时候就是会遇到不一样的情况。
因为有台server之前要安装route53 plugin ,然后要装预设的版本一直无法下载成功,解决方式就是更新certbot 版本。但接下来要安装apache plugin 的时候就发现apt-get install 预设版本,没有出现错误讯息,但是实际上执行certbot –apache 的时候会出现错误讯息说没有apache plugin,才发现虽然安装时没有错误讯息,但实际上apache plugin无法运作(等同于安装失败),原来就是因为版号不对的关系。检查一下已经安装的plugin ,真的没有apache plugin存在。
$ 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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
解决方式就是透过pip3 来指定apache plugin 版本来安装。 ( reference )
$ sudo pip3 install certbot_apache==0.40.1
但是这时候又会喷另一个错误讯息,说acme版本不对
ERROR: certbot 1.0.0 has requirement acme>=0.40.0, but you'll have acme 0.31.0 which is incompatible.
只好先升级acme,再来安装apache plugin
$ sudo pip3 install acme==0.40.1
完成之后检查plugin 就可以发现apache plugin 正常安装上去了,接下来就可以用–apache -d 来做ssl 凭证申请了。
$ 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
喜欢我的作品吗?别忘了给予支持与赞赏,让我知道在创作的路上有你陪伴,一起延续这份热忱!