python -m pip install certbotcertbot --versioncertbot certonly --authenticator manual --preferred-challenges http -d example.ru -d www.example.ruCreate a file containing just this data:
XXXXXXXXXXXXXXXXXXXXXXXXXX.YYYYYYYYYYYYYYYYYYYYYYYYYY
And make it available on your web server at this URL:
http://example.ru/.well-known/acme-challenge/XXXXXXXXXXXXXXXXXXXXXXXXXX
Press Enter to ContinueSuccessfully received certificate.
Certificate is saved at: C:\Certbot\live\example.ru\fullchain.pem
Key is saved at: C:\Certbot\live\example.ru\privkey.pem
This certificate expires on [дата].RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R=301,L]certbot certonly --authenticator manual --preferred-challenges http -d example.ru -d www.example.ru