Topic: lets encrypt ssl cert doesn't generate

- iRedMail version (check /etc/iredmail-release): 1.6.8 mariadb
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 22.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.
I tried to run:
certbot certonly --webroot -w /var/www/html -d domain

But keep getting this error port 80/443 is open, but Iredmail is already installed:
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
  Domain: domain
  Type:   connection
  Detail: ip: Fetching domain/.well-known/acme-challenge/Ver_ogIikVyOHHz0UxdIICrGZKwszUE-6kDBB84hKT0 Connection refused

Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.


Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.


Re: lets encrypt ssl cert doesn't generate

You should point "-w" to the root directory of this website.