Topic: Setting up Let's Encrypt with iRedMail and Apache — How?
The iRedMail documentation says this about using Let's Encrypt for SSL:
The --apache option of certbot program will modify Apache config files, most time it messes up iRedMail configurations, so it's better to get the cert with certonly --webroot option while requesting cert, then follow tutorial below to update config files to use the cert.
In the Certbot documentation about using the --webroot option it says this:
If you’re running a local webserver for which you have the ability to modify the content being served, and you’d prefer not to stop the webserver during the certificate issuance process, you can use the webroot plugin to obtain a certificate by including certonly and --webroot on the command line. In addition, you’ll need to specify --webroot-path or -w with the top-level directory (“web root”) containing the files served by your webserver. For example, --webroot-path /var/www/html or --webroot-path /usr/share/nginx/html are two common webroot paths.
So if I am only using iRedMail on my server with Apache and MySQL, which domain do I get an SSL certificate for, do I get the certificate for the server hostname or each email domain I set up in iRedMail? Also, as I'm not using the SSL on an actual website, what is the "web root" directory containing the files served by iRedMail? Or does that part not matter in the case of iRedMail?
And if I have a subdomain like mx.mydomain.com set up for people to use in their email readers, do I need an SSL for that subdomain, too, or just the server hostname?
I'm just a bit confused and was hoping someone had clear, step-by-step instructions on how to use Let's Encrypt with iRedMail and Apache/MySQL.
Thanks!
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 MARIADB edition
- Linux/BSD distribution name and version: CentOS 7.4.1708
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
====
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.