Certbot --nginx - Failed Authorization Procedure

Can anyone Help Please.....I am having trouble issuing new certificates, I have treid HTTP manual and am able to access the text file, which means 80 is accessible so why is certbot not having access?
See below for details

My domain is: mattenterprise.ctechn.com

I ran this command: certbot --nginx

It produced this output:
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for mattenterprise.ctechn.com
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. mattenterprise.ctechn.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://mattenterprise.ctechn.com/.well-known/acme-challenge/7EgemT2Wwp5ieQLIOveLKh3fVvXcR6BiVGCYVPxg8sw [80.x.xx.xxx]: "\n\n404 Not Found\n\n

Not Found

\n<p"

IMPORTANT NOTES:

My web server is (include version):

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

My hosting provider, if applicable, is: Vigin media

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): SSH

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

Just to add - i can renew current certificate and nginx it listening on 80:

root@rproxy:/etc/nginx/sites-enabled# ps auxf | grep nginx
root 26549 0.0 0.0 8900 728 pts/0 S+ 09:42 0:00 _ grep --color=auto nginx
root 1063 0.0 0.3 73520 13544 ? Ss Nov28 0:04 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data 26441 0.0 0.2 73760 10804 ? S 09:34 0:00 _ nginx: worker process
www-data 26442 0.0 0.4 73760 17756 ? S 09:34 0:00 _ nginx: worker process

touched nothing , so not sure why its not working now

That seems unlikely, but let's get to the bottom of this.

  1. Please show the vhost server config section that covers "mattenterprise.ctechn.com" for HTTP.
  2. Place a test file A in that root path.
    echo 'test-file-A' > /the/root/path/test-file-A
  3. Please a test file B in the expected challenge folder.
    mkdir /the/root/path/.well-known/
    mkdir /the/root/path/.well-known/acme-challenge/
    echo 'test-file-B' > /the/root/path/.well-known/acme-challenge/test-file-B

Change "/the/root/path/" to the actual root path used (found in #1).

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