Topic: Letsencrypt can't install certificate
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
1.0
- Deployed with iRedMail Easy or the downloadable installer?
Downloadable installer
- Linux/BSD distribution name and version:
Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
MySQL
- 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've installed iRedMail 1.0 on a fresh Ubuntu 18.04 64-bit system. All went well, and the system is working fine with its default self-signed certificate. But I encountered a problem trying to install a Letsencrypt certificate. The Certbot script first said:
No names were found in your configuration files. Please enter in your domain
name(s) (comma and/or space separated) (Enter 'c' to cancel):
I entered my domain names (haywired.org, packet.haywired.org, mail.haywired.org), and it continued OK, ending with this:
Could not automatically find a matching server block for haywired.org. Set the `server_name` directive to use the Nginx installer.
IMPORTANT NOTES:
- Unable to install the certificate
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/haywired.org/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/haywired.org/privkey.pem
Your cert will expire on 2020-03-30. To obtain a new or tweaked
version of this certificate in the future, simply run certbot again
with the "certonly" option. To non-interactively renew *all* of
your certificates, run "certbot renew"
I haven't used nginx before, so am struggling to understand where the "matching server block for haywired.org" should be found.
/etc/nginx/sites-available contains only 00-default.conf and 00-default-ssl.conf and I see no reference anywhere to my domains.
Should something have been set up as part of iRedMail's installation of nginx?
Can you suggest what I should do to fix this?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.