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

Then i open

nano /home/admin/conf/web/

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.