Renew problems with nginx and certbot

Hello Team,

Can you please help me how to renew ssl cert ?
I have one which was issued on 2 may and going to expire in end of july. I want renew it. How can I dot it from command line. I am having nginx server but unable to do.

Getting following error.

Attempting to renew cert from /etc/letsencrypt/renewal/xyz.com.conf produced an unexpected error: Failed authorization procedure. www.xyz.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.xyz.com/.well-known/acme-challenge/mP1M74m7swvnZwtIMXdtjaxKUUdlVOz0FOxGpTE2RI0: "

404 Not Found

404 Not Found


", www.xyz.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.xyz.com/.well-known/acme-challenge/Jao-WaZCl_NiIK4XumcgDbs3dE5x3U75UVt0B7_USPc: " 404 Not Found

404 Not Found


". Skipping.

I suggest creating a “test.txt” file and placing it in the /.well-known/acme-challenge folder location.
then ensure that file can be reached from the Internet.


(And also look into possible IPv6 issues)
Then (re)try renewing.