Installing an SSL certificate from a trusted Certificate Authority (CA) ensures secure HTTPS connections for your website or application. This guide walks you through the steps required to obtain and install an SSL certificate on your server.
An SSL (Secure Sockets Layer) certificate encrypts data between a user's browser and your server, ensuring security and trust. It is required for HTTPS and helps protect sensitive information like login credentials and payment details.
To get an SSL certificate from a commercial CA (e.g., DigiCert, GlobalSign, Sectigo):
Generate a Certificate Signing Request (CSR) on your server.
Submit the CSR to the CA during the certificate purchase process.
Verify domain ownership through email, DNS, or file-based verification.
Download the issued certificate files from the CA.
Softsys Hosting Offers a range of SSL certificates for all purposes at discounted price , for more details , visit out website : SSL Certificates: Comodo, GeoTrust, Thawte, Symantec, RapidSSL
Run the following OpenSSL command:
openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr
yourdomain.key → Private key (keep this secure)
yourdomain.csr → CSR file (send this to the CA)
Once you receive the certificate files from the CA:
Upload the certificate files (e.g., yourdomain.crt
, yourdomain.ca-bundle
) to your server.
Copy the private key (yourdomain.key
) to the same directory.
Configure your web server (Apache/Nginx) to use the SSL certificate.
For Apache, update your virtual host configuration:
<VirtualHost *:443>
ServerName yourdomain.com
SSLEngine on
SSLCertificateFile /etc/ssl/certs/yourdomain.crt
SSLCertificateKeyFile /etc/ssl/private/yourdomain.key
SSLCertificateChainFile /etc/ssl/certs/yourdomain.ca-bundle
</VirtualHost>
For Nginx, update your server block:
server {
listen 443 ssl;
server_name yourdomain.com;
ssl_certificate /etc/ssl/certs/yourdomain.crt;
ssl_certificate_key /etc/ssl/private/yourdomain.key;
}
Restart the web server to apply changes:
sudo systemctl restart apache2 # For Apache
sudo systemctl restart nginx # For Nginx
Use the following command to check if SSL is correctly installed:
openssl s_client -connect yourdomain.com:443 -servername yourdomain.com
Alternatively, use an online SSL checker like SSL Labs to verify your certificate.
Before your SSL certificate expires:
Generate a new CSR (same steps as before).
Submit it to your CA for renewal.
Download and install the new certificate following the installation steps above.
Common SSL issues and solutions:
Certificate not trusted → Ensure you installed the CA bundle.
Mismatch error → Check that the certificate matches the domain name.
SSL not working → Restart the web server and clear browser cache.