HolyCloud Linux VPS'inizde otomatik yenilemeli, ücretsiz Let's Encrypt sertifikaları almak için Nginx (web sunucusu / ters vekil) ile Certbot'u birlikte kullanın.
Ön koşullar
- Ubuntu/Debian kurulu, sudo erişimli HolyCloud VPS
- VPS IP'sine yönlendirilmiş alan adı (DNS'te A / AAAA kaydı)
- 80 ve 443 portları açık (UFW + HolyCloud paneli)
- Site veya en azından yanıt vermeye hazır bir
server_name
Adım 1: Nginx kurulumu
sudo apt update
sudo apt install -y nginx
sudo systemctl enable --now nginx
curl -I http://127.0.0.1
Adım 2: temel sanal konak
www.example.com yerine kendi alan adınızı yazın:
sudo nano /etc/nginx/sites-available/example.com
server {
listen 80;
listen [::]:80;
server_name example.com www.example.com;
root /var/www/example.com/html;
index index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
}
sudo mkdir -p /var/www/example.com/html
echo '<h1>HolyCloud VPS</h1>' | sudo tee /var/www/example.com/html/index.html
sudo ln -sf /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
Adım 3: Certbot kurulumu (Nginx eklentisi)
sudo apt install -y certbot python3-certbot-nginx
Adım 4: sertifika alma
sudo certbot --nginx -d example.com -d www.example.com --agree-tos -m [email protected] --redirect
Certbot, vhost'u 443 portunu dinleyecek şekilde günceller ve --redirect kullanılmışsa HTTP → HTTPS yönlendirmesi yapar.
Güvenli yenileme (dry-run):
sudo certbot renew --dry-run
certbot.timer systemd zamanlayıcısı otomatik yenilemeyi üstlenir:
systemctl list-timers | grep certbot
Adım 5: önerilen TLS başlıkları (isteğe bağlı)
İlk sertifika alındıktan sonra, oluşturulan vhost'taki SSL bloğunu sıkılaştırın (örnek):
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers off;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
sudo nginx -t && sudo systemctl reload nginx
Doğrulama
sudo certbot certificates
curl -sI https://example.com | grep -E 'HTTP/|strict-transport'
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -dates
Tarayıcı: geçerli asma kilit, Let's Encrypt sertifika zinciri.
HolyCloud yardımı
- Challenge failed: DNS'i (yayılım) ve 80 numaralı portun VPS'e ulaştığını kontrol edin (HTTP-01'i engelleyen bir CDN vekili olmamalı)
- Too many requests: Let's Encrypt hız sınırı — bekleyin veya
certbot --stagingile staging ortamını kullanın - HolyCloud destek ekibi: alan adı, VPS IP'si,
sudo certbot renew --dry-runvenginx -tçıktısı