Authorization result: ivalid Error 403

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:
rdsgw.civinity.lv
I ran this command:
A simple Windows ACMEv2 client (WACS)
Software version 2.1.19.1142 (release, pluggable, standalone, 64-bit)
Connecting to https://acme-v02.api.letsencrypt.org/...
Scheduled task not configured yet
Please report issues at GitHub - win-acme/win-acme: A simple ACME client for Windows (for use with Let's Encrypt et al.)

N: Create certificate (default settings)
M: Create certificate (full options)
R: Run renewals (0 currently due)
A: Manage renewals (0 total)
O: More options...
Q: Quit

Please choose from the menu: m

Running in mode: Interactive, Advanced
Target plugin IIS not available: No supported version of IIS detected.

Please specify how the list of domain names that will be included in the
certificate should be determined. If you choose for one of the "all bindings"
options, the list will automatically be updated for future renewals to
reflect the bindings at that time.

1: Read site bindings from IIS
2: Manual input
3: CSR created by another program
C: Abort

How shall we determine the domain(s) to include in the certificate?: 2

Description: A host name to get a certificate for. This may be a
comma-separated list.

Host: rdsgw.civinity.lv

Source generated using plugin Manual: rdsgw.civinity.lv

Suggested friendly name '[Manual] rdsgw.civinity.lv', press to accept or type an alternative:

The ACME server will need to verify that you are the owner of the domain
names that you are requesting the certificate for. This happens both during
initial setup and for every future renewal. There are two main methods of
doing so: answering specific http requests (http-01) or create specific dns
records (dns-01). For wildcard domains the latter is the only option. Various
additional plugins are available from GitHub - win-acme/win-acme: A simple ACME client for Windows (for use with Let's Encrypt et al.).

1: [http-01] Save verification files on (network) path
2: [http-01] Serve verification files from memory
3: [http-01] Upload verification files via FTP(S)
4: [http-01] Upload verification files via SSH-FTP
5: [http-01] Upload verification files via WebDav
6: [dns-01] Create verification records manually (auto-renew not possible)
7: [dns-01] Create verification records with acme-dns (GitHub - joohoi/acme-dns: Limited DNS server with RESTful HTTP API to handle ACME DNS challenges easily and securely.)
8: [dns-01] Create verification records with your own script
9: [tls-alpn-01] Answer TLS verification request from win-acme
C: Abort

How would you like prove ownership for the domain(s)?: 2

After ownership of the domain(s) has been proven, we will create a
Certificate Signing Request (CSR) to obtain the actual certificate. The CSR
determines properties of the certificate like which (type of) key to use. If
you are not sure what to pick here, RSA is the safe default.

1: Elliptic Curve key
2: RSA key
C: Abort

What kind of private key should be used for the certificate?: 2

When we have the certificate, you can store in one or more ways to make it
accessible to your applications. The Windows Certificate Store is the default
location for IIS (unless you are managing a cluster of them).

1: IIS Central Certificate Store (.pfx per host)
2: PEM encoded files (Apache, nginx, etc.)
3: PFX archive
4: Windows Certificate Store
5: No (additional) store steps

How would you like to store the certificate?: 4

1: [My] - General computer store (for Exchange/RDS)
2: [Default] - Use global default, currently My

Choose store to use, or type the name of another unlisted store: 2

1: IIS Central Certificate Store (.pfx per host)
2: PEM encoded files (Apache, nginx, etc.)
3: PFX archive
4: Windows Certificate Store
5: No (additional) store steps

Would you like to store it in another way too?: 5

Installation plugin IIS not available: No supported version of IIS detected.

With the certificate saved to the store(s) of your choice, you may choose one
or more steps to update your applications, e.g. to configure the new
thumbprint, or to update bindings.

1: Create or update https bindings in IIS
2: Create or update ftps bindings in IIS
3: Start external script or program
4: No (additional) installation steps

Which installation step should run first?: 4

Terms of service: C:\ProgramData\win-acme\acme-v02.api.letsencrypt.org\LE-SA-v1.2-November-15-2017.pdf

Open in default application? (y/n*) - no

Do you agree with the terms? (y*/n) - yes

Enter email(s) for notifications about problems and abuse (comma-separated):

[rdsgw.civinity.lv] Authorizing...
[rdsgw.civinity.lv] Authorizing using http-01 validation (SelfHosting)
[rdsgw.civinity.lv] Authorization result: invalid
[rdsgw.civinity.lv] {
"type": "urn:ietf:params:acme:error:unauthorized",
"detail": "Invalid response from http://rdsgw.civinity.lv/.well-known/acme-challenge/hqj8yKKucTbWrfYy0OsaJJ-G4bM49X9V0Yhkvk4ty18 [185.58.66.18]: "\r\n<html xmlns=\"http"",
"status": 403
}
It produced this output:

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

The server was working fine until the certificate expired and didn't renewed by task scheduler.

Dont know how to resolve this problem.. Lets Debug shows everything fine.

T

Hi @Aurymka and welcome to the LE community forum :slight_smile:

curl -Ii http://rdsgw.civinity.lv/
HTTP/1.1 200 OK
Content-Length: 703
Content-Type: text/html
Last-Modified: Wed, 15 Sep 2021 13:30:34 GMT
Accept-Ranges: bytes
ETag: "d1ad15dd35aad71:0"
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET
Date: Mon, 18 Oct 2021 13:52:16 GMT

Are you on the right system?

I think so. Because i always configured certificate to RDS Gateway like this. It was working well until today. I didn't get email that something is wrong or its expiring.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.