1

Topic: certbot error

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.0.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySql
- Web server (Apache or Nginx):Apache2
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
NOTE: I replaced my actual domain with example.com

Getting this error when issuing the command:
certbot certonly --webroot -d example.com -w /var/www/html

- The following errors were reported by the server:

   Domain: example.com
   Type:   unauthorized
   Detail: Invalid response from
   http://example.com/.well-known/acme-cha … mHiy_XZaw:
   "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
   <html><head>
   <title>404 Not Found</title>
   </head><body>
   <h1>Not Found</h1>

I suspect my problem is related to the fact that all requests to port 80 of my domain are immediately routed to another ubuntu server on my local network.

Any suggestions on how to resolve?

----

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

2

Re: certbot error

While running, certbot will create a temporary file on localhost, and it should be accessible by web access via URL: http://<domain>/.well-known/acme-challenge/<file>

If your http traffic is redirected to another host, this URL will not return the correct data required by LetsEncrypt server for authentication.

3

Re: certbot error

Thanks for the explanation. I'll work around this.

4

Re: certbot error

Again, thanks. Simply turning off my redirection solved the problem and certbot ran successfully.