Option 1: Automated via NexusHost (Easiest)
If your domain is managed by NexusHost:
Option 2: Certbot (Free Let's Encrypt)
SSH into your server and install Certbot:
For Nginx:
sudo apt install certbot python3-certbot-nginx -y
sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com
For Apache:
sudo apt install certbot python3-certbot-apache -y
sudo certbot --apache -d yourdomain.com -d www.yourdomain.com
Certbot automatically configures your web server and sets up auto-renewal via a cron job.
Verify auto-renewal:
sudo certbot renew --dry-run
Option 3: Bitnami HTTPS Tool (WordPress/LAMP)
If using a Bitnami blueprint:
sudo /opt/bitnami/bncert-tool
Follow the prompts to:
Option 4: Manual SSL Installation
For premium certificates (DigiCert, Comodo, etc.):
openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
Verifying SSL
After installation, check your SSL at:
Forcing HTTPS
Most Certbot and Bitnami installations do this automatically. If not:
Nginx:
server {
listen 80;
server_name yourdomain.com;
return 301 https://$server_name$request_uri;
}
Apache (.htaccess):
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]