Answer the question
In order to leave comments, you need to log in
How to renew an SSL certificate?
Debian/Nginx 1.12.2
How to solve the letsencrypt certificate renewal issue if it checks the validity not of the domain name, but of the ip address
http://123.123.123.123:443/.well-known/acme-challenge/fxsFCP9Kn71b-afO53dj91sbRJw7mDt_Sq2jaUiHBG4
http://mysite.com:443/.well-known/acme-challenge/fxsFCP9Kn71b-afO53dj91sbRJw7mDt_Sq2jaUiHBG4
location ^~ /.well-known/acme-challenge {
default_type "text/plain";
rewrite /.well-know/acme-challenge/(.*) /$1 break;
allow all;
root /var/www;
}
location = /.well-known/acme-challenge/ {
return 404;
}
server {
listen 80 default;
server_name _;
access_log /dev/null;
error_log /dev/null;
location / {
return 444;
}
}
server {
listen 443 ssl default;
server_name _;
ssl_stapling off;
ssl on;
ssl_certificate_key /etc/ssl/private/debian-webhost.key;
ssl_certificate /etc/ssl/certs/debian-webhost.crt;
location / {
return 444;
}
}
Answer the question
In order to leave comments, you need to log in
apt update
apt upgrade
reboot
and it seems to work again, I didn’t change anything in the configs, the cause of the error is not clear, and it may appear tomorrow, I’m closing the question for now
Why do you think he needs a way to the site? -w /var/www/webroot
you at least read the mana, everything is written there,
well, if you really want to read it in Russian.
https://losst.ru/kak-poluchit-sertifikat-let-s-encrypt#
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question