1

Topic: Letsencrypt with new iRed Pro installation - not working

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

I have been at a stand still because of the lets encrypt cert.  I can't get it to verify my system. 
I created a new installation with a different host/domain name, and it worked... but I need it to work for my main server.

I did 'yum install certbot' to make sure I wasn't using --nginx per the instructions:
https://docs.iredmail.org/letsencrypt.html

Here is what I keep getting and can't get past.  This is a brand new installation with no changes other than importing the databases that are required.

please help!



Waiting for verification...
Cleaning up challenges
Failed authorization procedure. mail.mydomain.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://mail.mydomain.com/.well-known/ac … _ho5EzrDw: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"

IMPORTANT NOTES:
- The following errors were reported by the server:

   Domain: mail.mydomain.com
   Type:   unauthorized
   Detail: Invalid response from
   http://mail.mydomain.com/.well-known/ac … _ho5EzrDw:
   "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML
   2.0//EN\">\n<html><head>\n<title>404 Not
   Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address.

2

Re: Letsencrypt with new iRed Pro installation - not working

Seems the directory you specified to store .well-known files is incorrect. Could you please show me your full 'certbot' command and arguments?

Also, show us the full content of /etc/nginx/templates/misc.tmpl.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee