1

Topic: Ubuntu 20.04 certbot fails

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.5.2
- Deployed with iRedMail Easy or the downloadable installer? downloaded
- Linux/BSD distribution name and version:  Ubunto 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): nGinx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Fresh install. 
Cant' login into any web interface, iredadmin or roundcoube -- firefox refuses the local certificate with no way to accept it.

Installed certbot via apt.
Certbot fails with "The requested nginx plugin does not appear to be installed"

debug log:

cat /var/log/letsencrypt/letsencrypt.log
2022-03-24 00:15:24,407:DEBUG:certbot.main:certbot version: 0.40.0
2022-03-24 00:15:24,408:DEBUG:certbot.main:Arguments: ['--nginx']
2022-03-24 00:15:24,408:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-03-24 00:15:24,420:DEBUG:certbot.log:Root logging level set at 20
2022-03-24 00:15:24,420:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2022-03-24 00:15:24,421:DEBUG:certbot.plugins.selection:Requested authenticator nginx and installer nginx
2022-03-24 00:15:24,421:DEBUG:certbot.plugins.selection:No candidate plugin
2022-03-24 00:15:24,421:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None
2022-03-24 00:16:12,061:DEBUG:certbot.main:certbot version: 0.40.0
2022-03-24 00:16:12,061:DEBUG:certbot.main:Arguments: ['--nginx']
2022-03-24 00:16:12,062:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-03-24 00:16:12,074:DEBUG:certbot.log:Root logging level set at 20
2022-03-24 00:16:12,074:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2022-03-24 00:16:12,075:DEBUG:certbot.plugins.selection:Requested authenticator nginx and installer nginx
2022-03-24 00:16:12,075:DEBUG:certbot.plugins.selection:No candidate plugin
2022-03-24 00:16:12,075:DEBUG:certbot.plugins.selection:No candidate plugin
2022-03-24 00:16:12,075:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None
2022-03-24 00:16:12,075:INFO:certbot.main:Could not choose appropriate plugin: The requested nginx plugin does not appear to be installed
2022-03-24 00:16:12,075:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
  File "/usr/bin/certbot", line 11, in <module>
    load_entry_point('certbot==0.40.0', 'console_scripts', 'certbot')()
  File "/usr/lib/python3/dist-packages/certbot/main.py", line 1382, in main
    return config.func(config, plugins)
  File "/usr/lib/python3/dist-packages/certbot/main.py", line 1244, in certonly
    installer, auth = plug_sel.choose_configurator_plugins(config, plugins, "certonly")
  File "/usr/lib/python3/dist-packages/certbot/plugins/selection.py", line 235, in choose_configurator_plugins
    diagnose_configurator_problem("authenticator", req_auth, plugins)
  File "/usr/lib/python3/dist-packages/certbot/plugins/selection.py", line 339, in diagnose_configurator_problem
    raise errors.PluginSelectionError(msg)
certbot.errors.PluginSelectionError: The requested nginx plugin does not appear to be installed

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.

2

Re: Ubuntu 20.04 certbot fails

I don't use Ubuntu, but I followed the iRedMail documentation: https://docs.iredmail.org/use.a.bought. … icate.html
and: https://docs.iredmail.org/letsencrypt.html

I did have an issue with iRedAdmin by installing from FreeBSD "# pkg install py37 certbot" so I installed from ports instead:
# cd /usr/ports/security/py-certbot
# make install clean
Don't know if this translates to Ubuntu!