Error running "certbot renew --dry-run"

Hi! How are you!

I need help if someone knows “WHY”

I try to run

certbot renew --dry-run

And then i get this error

Detail: The key authorization file from the server did not match
this challenge
[GPPa6-K8-Q9zhoZz0xQOb6NCgj0egmx-3_6u7X2M.f2FPWFFGxII7ZWbQ4shR3KvlXZ0rawcw377ttutQ]
!=
[GPPa6-K8-Q9zhoZz0xQOb6NCgj0egmx-3_6u7X.2DhyZoRZqxSfs2Y0qz9Gc72la44NbOKg-dTStVhq0]

Then i open

nano /home/admin/conf/web/domain.com.nginx.conf

And i added this

location ^~ /.well-known/acme-challenge/ {
default_type “text/plain”;
}

And now its working, i am using vestacp (fresh installation and i am using the domain as a vesta´s admin panel forcing to https)

The default_type is most likely a red herring.

More likely:

Before: all requests were being routed to specific endpoint, e.g. index.php

After: due to the more specific location block, nginx falls back to regular behavior of serving files from document root.

Hard to say for sure without the full configuration.

Then now, it will work fine or i need renew manually each domain every 3 months?

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