Error: Could not issue a Let's Encrypt SSL/TLS certificate for domain.com. Authorization for the domain failed

When I try to apply Let’s Encrypt in Plesk Onyx Version 17.0.17 Update #63 I get an error (below). Problem is that it is looking at http://domain.com, but I need to change to http://www.domain.com How can it be done?

Edit: letsencrypt is fetching from http://domain… but I need it to fetch from http://www.domain

Error: Could not issue a Let’s Encrypt SSL/TLS certificate for domain.com . Authorization for the domain failed.
Details

Invalid response from https://acme-v02.api.letsencrypt.org/acme/authz-v3/2818350824.
Details:
Type: urn:ietf:params:acme:error:connection
Status: 400
Detail: Fetching http://domain.com/.well-known/acme-challenge/UoqAaDM1W-lZg4j40QGJj8XGy7tXUnk4nhLjwHpVGfg: Timeout during connect (likely firewall problem)

Hi @swslive

please read your output.

A working port 80 is required. Not a timeout or a blocking firewall.

ok, if access http://domain.com/.well-known/acme-challenge/UoqAaDM1W-lZg4j40QGJj8XGy7tXUnk4nhLjwHpVGfgit does not work but http://www.domain.com/… does work. I need it to look at domain with www

I don’t use Plesk.

But you have two options:

  • Create only a certificate with the www version (or)
  • fix the not working non-www

Just to clarify:
letsencrypt is fetching from http://domain… but I need it to fetch from http://www.domain

Please start with some required basics:

Then read

I’ve seen it already, but it speaks about http://example.com/, and in my case it redirects to http://www.example.com/, so Status: 400 Detail: Fetching http://example.com: Timeout during connect (likely firewall problem)

You are wrong. There is no redirect, there is a timeout.

Please answer all of the required questions of the template you have deleted.

Then check your domain with online tools - then you see there is a timeout. Non-www -> timeout, www works.

http://domain.com/contactUs.php redirects to http://www.domain.com/contactUs.php

This times out and does not redirect: http://domain.com/.well-known/acme-challenge/UoqAaDM1W-lZg4j40QGJj8XGy7tXUnk4nhLjwHpVGfg

This opens: http://www.domain.com/.well-known/acme-challenge/UoqAaDM1W-lZg4j40QGJj8XGy7tXUnk4nhLjwHpVGfg

So I need to update where it is fetching from. This is my question, ho do I do this?

It seems like you are using a URL redirection service that doesn’t work properly… Plesk will always attempt to request a certificate for both version of your website, (or the root domain). You’ll also need to point your root domain to the hosting for your www version, and request the certificate at there.

Thank you