Hello, I previously used certbot command to install and renew certificates of my domains and subdomains, it automatically detected the apache virtual hosts and I just had to select the domain I want to renew in the list and it worked without problems for a lot of time.
My system:
Ubuntu 20.04.4 LTS x86_64
Certbot 1.29.0
I host my websites on apache2
After a system update certbot stopped working, I get this error:
root@ubuntu-server:~# certbot
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Certbot doesn't know how to automatically configure the web server on this system. However, it can still get a certificate for you. Please run "certbot certonly" to do so. You'll need to manually configure your web server to use the resulting certificate.
letsencrypt.log file:
root@ubuntu-server:~# cat /var/log/letsencrypt/letsencrypt.log
2022-07-26 15:40:46,722:DEBUG:certbot.main:certbot version: 0.40.0
2022-07-26 15:40:46,722:DEBUG:certbot.main:Arguments: []
2022-07-26 15:40:46,722:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-07-26 15:40:46,729:DEBUG:certbot.log:Root logging level set at 20
2022-07-26 15:40:46,729:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2022-07-26 15:40:46,729:DEBUG:certbot.plugins.selection:Requested authenticator None and installer None
2022-07-26 15:40:46,729:DEBUG:certbot.plugins.selection:No candidate plugin
2022-07-26 15:40:46,729:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None
If I install python3-certbot-apache and run "certbot", I get this error:
root@ubuntu-server:~/apps/wgdashboard/src# certbot
An unexpected error occurred:
AttributeError: module 'certbot.plugins.common' has no attribute 'TLSSNI01'
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/tmp053ykjqn/log or re-run Certbot with -v for more details.
Log of: /tmp/tmp053ykjqn/log
2022-07-26 16:34:04,098:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/local/bin/certbot", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/certbot/main.py", line 19, in main
return internal_main.main(cli_args)
File "/usr/local/lib/python3.8/dist-packages/certbot/_internal/main.py", line 1705, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File "/usr/local/lib/python3.8/dist-packages/certbot/_internal/plugins/disco.py", line 241, in find_all
plugin_ep = cls._load_entry_point(entry_point, plugins, with_prefix=False)
File "/usr/local/lib/python3.8/dist-packages/certbot/_internal/plugins/disco.py", line 261, in _load_entry_point
plugin_ep = PluginEntryPoint(entry_point, with_prefix)
File "/usr/local/lib/python3.8/dist-packages/certbot/_internal/plugins/disco.py", line 60, in __init__
self.plugin_cls: Type[interfaces.Plugin] = entry_point.load()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2445, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2451, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3/dist-packages/certbot_apache/entrypoint.py", line 8, in <module>
from certbot_apache import configurator
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 35, in <module>
from certbot_apache import http_01
File "/usr/lib/python3/dist-packages/certbot_apache/http_01.py", line 17, in <module>
class ApacheHttp01(common.TLSSNI01):
AttributeError: module 'certbot.plugins.common' has no attribute 'TLSSNI01'
2022-07-26 16:34:04,098:ERROR:certbot._internal.log:An unexpected error occurred:
2022-07-26 16:34:04,098:ERROR:certbot._internal.log:AttributeError: module 'certbot.plugins.common' has no attribute 'TLSSNI01'
I can still renew and install certificates using "certbot certonly" command, but it's a real pain in the ass considering that I also have quite a few domains to renew.
Please help.