My domain is:
It produced this output (in log):
certbot.errors.MisconfigurationError: Could not automatically find a matching server block for mail.forinstance.io. Set the
server_name directive to use the Nginx installer.
2020-05-03 22:36:50,311:DEBUG:certbot._internal.error_handler:Calling registered functions
2020-05-03 22:36:50,396:DEBUG:certbot._internal.reporter:Reporting to user: Unable to install the certificate
2020-05-03 22:36:50,397:DEBUG:certbot._internal.log:Exiting abnormally:
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don’t know):
Yes I’m using Putty.
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of
certbot --version or
certbot-auto --version if you’re using Certbot):
This directive is from my nginx.conf file.
$ sudo /usr/local/bin/certbot-auto --nginx
The installer updated my nginx.conf file. I checked my cert on https://www.ssllabs.com/ssltest and received an A.
However a few minutes later when I expanded my certificate to include the mail server it threw an error.
I included the error from my letsencrypt.log above.
How do I get certbot-auto to expand my certificate to include the mail server without throwing an error?
If expanding the certificate is not the right choice, how do I get a second certificate with certbot-auto that doesn’t conflict with the first?
I should add that the mailserver is hosted on Digital Ocean in the same droplet. I am using postfix and dovecot.