Install ssl for domain
Almalinux, apache.
# Cài đặt Certbot
sudo dnf install -y certbot python3-certbot-apache
# Tạo SSL certificate
sudo certbot --apache -d occ.asia -d www.occ.asia
# Tự động gia hạn
sudo crontab -l | { cat; echo "0 12 * * * /usr/bin/certbot renew --quiet"; } | sudo crontab -
anhcoo : # Test SSL
echo "=== SSL Test ==="
openssl s_client -connect occ.asia:443 -servername occ.asia < /dev/null 2>/dev/null | openssl x509 -noout -dates
# Hoặc dùng online tool
echo "Check: https://www.ssllabs.com/ssltest/analyze.html?d=occ.asia"