Press Local Setup Custom Domain Map Failure

Custom Domain Mapping getting failed

With error:
Saving debug log to /home/frappe/.certbot/logs/letsencrypt.log
Requesting a certificate for demo.tetsd--emo.com

Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: demo.tetsd--emo.com
Type: connection
Detail: 1.1.561.1.1: Fetching http://ssl.tescloud.cloud/.well-known/acme-challenge/ygHT3SlQ0S7mctw1Xpspn-KFselgupPn6j2EDdDqEOU: Redirect loop detected

Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /home/frappe/.certbot/logs/letsencrypt.log or re-run Certbot with -v for more details.

@corentin can you please look on this?

Hey :wave:

  1. Check that the DNS records point to your Frappe Press central instance.

  2. Add the following Nginx configuration (e.g. /etc/nginx/conf.d/ssl.conf).

# ACME Challenge for all TLS certificates
server {
	listen 80;
	listen [::]:80;
	server_name ssl.example.cloud;

	location ^~ /.well-known/acme-challenge/ {
		default_type "text/plain";
		root /home/myuser/.webroot;
	}

	location = /.well-known/acme-challenge/ {
		return 404;
	}

	location ^~ / {
		root /home/myuser/.webroot;
	}
}
  1. Reload the Nginx configuration (service nginx reload).

  2. Go to the TLS Certificate for the custom domain that fails.

  3. Click Obtain Certificate.

  4. Wait a little bit.

  5. On failure, look at the error log for a TLS Certificate Exception, and look at the connection Detail Type: connection\n Detail: IP ADDRESS and check that the IP is that of the Frappe Press instance. If not, maybe the DNS records are not yet propagated.

2 Likes

Thank You! Issue is resolved :sparkling_heart:

1 Like

Amazing! Have a nice day :smiley:

1 Like