S
S
Svoboo2017-11-27 17:22:00
Digital certificates
Svoboo, 2017-11-27 17:22:00

How to solve the error when getting letsencrypt certificate in vesta?

I transfer sites to a new server, there is a vesta panel. After adding domains on the new server (the letsencyrpt ssl certificate was installed on the old server), I try to create an ssl certificate for them through the panel and get the error Error: The key authorization file from the server did not match this challenge. This is only observed on domains where ssl used to be. The domains have already been rebound to the new server. Googled just to remove /home/{USER}/conf/web/nginx.{DOMAIN}.conf_letsencrypt. Deleted but didn't help. What can be wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dragun007, 2018-12-30
@dragun007

I googled what to change in /home/{USER}/conf/web/nginx.{DOMAIN}.conf_letsencrypt
location ~ "^/\.well-known/acme-challenge/(.*)$" {
default_type text /plain;
return 200 "$1.XXXXXXXXXXXXXXXXXXXXXXXXXXX";
}
On 1 code which comes in an error. This is of course a crutch, but it works. How to solve the problem so that everything works as it should, I still do not know.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question