How To Install SSL Certificate On NGINX Ubuntu VPS
SSL certificates are essential for modern websites and business applications.
SSL encryption helps:
- secure website traffic
- protect customer data
- improve SEO rankings
- increase trust
- enable HTTPS
In this guide,
you will learn how to install an SSL certificate on an NGINX Ubuntu VPS server using:
Let’s Encrypt SSL
and Certbot step-by-step.
What Is SSL?
SSL stands for:
Secure Sockets Layer
It encrypts communication between:
- websites
- applications
- visitors
- servers
Websites using SSL display:
https://
instead of:
http://
Why SSL Is Important
SSL certificates provide:
- encrypted communication
- better SEO rankings
- browser trust
- secure payments
- customer confidence
- compliance benefits
Google recommends HTTPS for all websites.
Prerequisites
Before starting,
ensure you have:
- Ubuntu VPS server
- NGINX installed
- domain pointed to VPS IP
- SSH access enabled
Recommended operating system:
Ubuntu 22.04 LTS
Step 1 — Connect To VPS Server
Connect using SSH.
Command:
ssh root@your-server-ip
Example:
ssh root@192.168.1.10
Step 2 — Update Server Packages
Update server packages.
Command:
apt update && apt upgrade -y
This improves:
- security
- compatibility
- stability
Step 3 — Install Certbot
Install Certbot and NGINX plugin.
Command:
apt install certbot python3-certbot-nginx -y
Certbot automates SSL installation and renewal.
Step 4 — Verify NGINX Configuration
Test NGINX configuration.
Command:
nginx -t
If successful,
you should see:
syntax is ok
Step 5 — Obtain SSL Certificate
Run Certbot.
Command:
certbot --nginx
Certbot will:
- detect domains
- generate SSL certificate
- configure HTTPS automatically
Step 6 — Enter Email Address
Provide valid email address for:
- renewal notifications
- security alerts
- expiration warnings
Step 7 — Select Domain
Choose the domain you want to secure.
Example:
example.com
www.example.com
Step 8 — Enable HTTPS Redirect
Choose:
Redirect HTTP to HTTPS
This automatically redirects:
http://
to:
https://
Step 9 — Verify SSL Installation
Open browser and visit:
https://yourdomain.com
You should now see:
- HTTPS enabled
- secure padlock icon
How To Check SSL Certificate
Check SSL status:
certbot certificates
This displays:
- domains
- expiration dates
- certificate paths
Important SSL Commands
Renew SSL Certificate
certbot renew
Test SSL Renewal
certbot renew --dry-run
Restart NGINX
systemctl restart nginx
Check NGINX Status
systemctl status nginx
SSL Certificate File Locations
Certificate file:
/etc/letsencrypt/live/yourdomain/fullchain.pem
Private key:
/etc/letsencrypt/live/yourdomain/privkey.pem
Automatic SSL Renewal
Let’s Encrypt certificates expire every:
90 days
Certbot automatically configures renewal jobs.
Verify cron job:
systemctl list-timers
Common SSL Errors
Domain Not Pointing To VPS
Ensure:
- DNS records are correct
- domain points to VPS IP
Check DNS propagation before installing SSL.
NGINX Configuration Error
Test configuration:
nginx -t
Fix syntax errors before retrying.
Firewall Blocking HTTPS
Allow HTTPS traffic.
Command:
ufw allow 443/tcp
Reload firewall:
ufw reload
Why HTTPS Matters For SEO
HTTPS improves:
- Google rankings
- browser trust
- customer confidence
- website security
- online transactions
Modern browsers may warn users about insecure HTTP websites.
Why Businesses Need SSL Certificates
Businesses require SSL for:
- customer trust
- secure payments
- encrypted communication
- compliance
- data protection
SSL is essential for:
- eCommerce
- SaaS platforms
- login systems
- business websites
Why Choose DJ Technologies VPS Hosting
DJ Technologies Linux VPS hosting provides:
- enterprise virtualization
- NVMe SSD infrastructure
- premium low latency network
- scalable cloud resources
- secure hosting environments
- advanced infrastructure protection
- optimized NGINX hosting
- 24×7 technical support
Our VPS infrastructure is optimized for:
- SSL hosting
- secure websites
- SaaS applications
- business infrastructure
- enterprise workloads
Final Thoughts
SSL certificates are essential for modern Linux VPS hosting environments.
By enabling HTTPS using:
- Let’s Encrypt
- Certbot
- NGINX SSL configuration
you can significantly improve:
- website security
- SEO rankings
- customer trust
- infrastructure protection
- business reliability.
العربية