კითხვაHTTPS for a small site with Let's Encrypt: what should I watch?

TP Tomasz P. წევრი რეგისტრაცია: 30 ივნ. 2026
პოსტები: 84
#1

Hello. I want to put a small site on a VPS (nginx, simple pages, one contact form). Some questions:

1. Is certbot still the normal way to get a Let's Encrypt certificate?
2. How do I know renewal really works, not only on the first day?
3. Should I redirect all http to https at once?

Thank you.

SL Sara L. წევრი რეგისტრაცია: 17 ივლ. 2026
პოსტები: 80
#2

Following this one 🙂 Related question: if the domain is behind Cloudflare with their free certificate, do I still need a certificate on the server itself?

YS Yury Slinkin თანამშრომელი · ადმინი რეგისტრაცია: 6 ივნ. 2026
პოსტები: 94
#3

1. Yes, certbot with the nginx plugin is fine for one server:

sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d example.ge -d www.example.ge

2. Packages install a systemd timer (or cron job). Check it and do a dry run:

systemctl list-timers | grep certbot
sudo certbot renew --dry-run

Certificates are short-lived on purpose, so never plan to renew by hand. With the nginx plugin certbot reloads nginx itself; with other methods add --deploy-hook "systemctl reload nginx", otherwise nginx keeps serving the old certificate from memory.

3. Yes. certbot --nginx can add the redirect for you. If you write it yourself and use the webroot method (certbot certonly --webroot -w /var/www/certbot -d example.ge), keep /.well-known/acme-challenge/ reachable over http, the HTTP-01 check uses it:

server {
    listen 80;
    server_name example.ge www.example.ge;
    location /.well-known/acme-challenge/ { root /var/www/certbot; }
    location / { return 301 https://$host$request_uri; }
}

Add HSTS only after everything, subdomains included, works over https, and start with a short max-age.

>>2 Yes. With Cloudflare in front, use the "Full (strict)" mode: the origin then needs a valid certificate too (Let's Encrypt or Cloudflare's origin certificate). "Flexible" sends traffic between Cloudflare and your server unencrypted.

ER Evgeny Rudenko წევრი რეგისტრაცია: 14 აგვ. 2026
პოსტები: 86
#4

One addition for apps behind nginx (Node, Java, PHP-FPM, anything): terminate TLS in nginx and pass the scheme on, so the app builds correct https links and secure cookies:

location / {
    proxy_pass http://127.0.0.1:3000;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

The app should trust these headers only from the proxy, not from anyone on the internet.

TP Tomasz P. წევრი რეგისტრაცია: 30 ივნ. 2026
პოსტები: 84
#5

Thank you, very clear. One more: for a wildcard like *.example.ge, the same certbot command works?

ER Evgeny Rudenko წევრი რეგისტრაცია: 14 აგვ. 2026
პოსტები: 86
#6

>>5
No, a wildcard is issued only through the DNS-01 challenge: you prove control by a TXT record. Certbot has DNS plugins for many providers, they need an API token. Give that token access to one zone only and keep it out of the repository. If you do not really need a wildcard, listing the names with several -d is simpler.

KW Kate W. წევრი რეგისტრაცია: 4 სექ. 2026
პოსტები: 20
#7

Small thing that catches people after the switch: mixed content. If a page on https loads an image or script over http, browsers block it or show a warning. Worth searching the templates and the database for "http://" links to your own domain.

სწრაფი პასუხი

წერა შეუძლიათ მხოლოდ შესულ წევრებს. შესვლა