إنتقل إلى المحتوى الرئيسي

SSL Certificates

HTTPS is essential for FeedbackPulse SaaS. It protects login credentials, payment data, and customer information in transit.


For a Single Domain

# Install Certbot
sudo apt install certbot

# For Nginx:
sudo apt install python3-certbot-nginx
sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com

# For Apache:
sudo apt install python3-certbot-apache
sudo certbot --apache -d yourdomain.com -d www.yourdomain.com

Certbot will:

  • Obtain the certificate
  • Automatically configure your web server
  • Set up auto-renewal (via systemd timer)

For Wildcard (Subdomains)

See the detailed instructions in Wildcard DNS Setup.

Verify Auto-Renewal

# Test renewal (dry run)
sudo certbot renew --dry-run

# Check the timer
sudo systemctl status certbot.timer

Option 2: Paid SSL Certificate

If you prefer a paid certificate:

  1. Generate a CSR (Certificate Signing Request):
openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr
  1. Submit the CSR to your certificate provider
  2. Download the certificate files
  3. Install in your web server configuration

Option 3: Cloudflare SSL (Free)

If your domain uses Cloudflare:

  1. In Cloudflare dashboard → SSL/TLS
  2. Set mode to Full (Strict)
  3. Cloudflare provides SSL between visitors and Cloudflare
  4. Use a Cloudflare Origin Certificate for the connection between Cloudflare and your server

Post-SSL التكوين

After enabling SSL, update your .env:

APP_URL=https://yourdomain.com
SESSION_SECURE_COOKIE=true

الخطوات التالية