Problem renewing certificate

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: services.barsupply.gr

I ran this command: certbot renew --dry-run

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/services.barsupply.gr.conf


Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator nginx, Installer nginx
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for services.barsupply.gr
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (services.barsupply.gr) from /etc/letsencrypt/renewal/services.barsupply.gr.conf produced an unexpected error: Failed authorization procedure. services.barsupply.gr (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://services.barsupply.gr/.well-known/acme-challenge/ovQi0X33G84eAGexvS0-OuGNYGvm3Z0pTcVkfQhTKbE [79.107.146.225]: “\r\n400 The plain HTTP request was sent to HTTPS port\r\n<body bgcolor=“white”>\r\n

400 B”. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/services.barsupply.gr/fullchain.pem (failure)

** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.)

All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/services.barsupply.gr/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)


1 renew failure(s), 0 parse failure(s)

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: services.barsupply.gr
    Type: unauthorized
    Detail: Invalid response from
    http://services.barsupply.gr/.well-known/acme-challenge/ovQi0X33G84eAGexvS0-OuGNYGvm3Z0pTcVkfQhTKbE
    [79.107.146.225]: “\r\n400 The plain HTTP
    request was sent to HTTPS port\r\n<body
    bgcolor=“white”>\r\n

    400 B”

    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.

My web server is (include version): nginx version: nginx/1.10.3 “configured as reverse proxy”

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

Description: Debian GNU/Linux 9.9 (stretch)
Release: 9.9

My hosting provider, if applicable, is:

SelfHosted

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): nope

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): certbot 0.28.0

Hi @nickrock

looks like you have a wrong port forwarding.

Port 80 extern -> port 443 intern.

That's wrong. That must be:

Port 80 extern -> port 80 intern.
Port 443 extern -> port 443 intern.

Yep, your port 80 is broken ( https://check-your-website.server-daten.de/?q=services.barsupply.gr ):

Domainname Http-Status redirect Sec. G
http://services.barsupply.gr/
79.107.146.225 400 0.140 M
Bad Request
https://services.barsupply.gr/
79.107.146.225 200 0.800 N
Certificate error: RemoteCertificateChainErrors
https://services.barsupply.gr:80/
79.107.146.225 200 0.644 Q
Certificate error: RemoteCertificateChainErrors
Visible Content: Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.org . Commercial support is available at nginx.com . Thank you for using nginx.
http://services.barsupply.gr/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de
79.107.146.225 400 0.183 M
Bad Request
Visible Content: 400 Bad Request The plain HTTP request was sent to HTTPS port nginx

Your https works. But your port 80 + https sends content:

https://services.barsupply.gr:80/

That's wrong.

Hi @JuergenAuer
Ty for the help , it was a misconfiguration on my mikrotik router on nat port forwarding rule
i probably changed it when i was drunk or smt, cheers
problem is resolved.

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