SQL Database Mirroring – Introduction to Operating Modes
In the last part of SQL database mirroring, you have learned about database mirroring and…
Securing your website with SSL protects data and builds user trust. In this guide, we’ll walk you through the steps to efficiently install an SSL certificate on NGINX.
To successfully install an SSL certificate on your NGINX server, you will need the following files:
Once you have obtained these files from your Certificate Authority (CA), follow the steps below to complete the installation.
Manual Combination: Ensure you follow this sequence when combining the certificates:
1. Primary certificate for your domain.
2. Intermediate certificates.
3. Root certificate.Automatic Combination: Use the following commands to combine the certificates:
1. If you have separate intermediate and root files:
cat your_domain.crt intermediate.crt root.crt >> ssl-bundle.crt
2. If your intermediate and root certificates are in a single .ca-bundle file:
cat your_domain.crt bundle.crt >> ssl-bundle.crt
Note: Replace your_domain.crt and bundle.crt with the actual file names.
Save the combined file (ssl-bundle.crt) in your NGINX server’s SSL directory.
server {
listen 443;
ssl on;
ssl_certificate /etc/ssl/ssl-bundle.crt;
ssl_certificate_key /etc/ssl/private.key;
server_name yourdomain.com;
access_log /var/log/nginx/nginx.vhost.access.log;
error_log /var/log/nginx/nginx.vhost.error.log;
location / {
root /var/www/;
index index.html;
}
}
You can now install an SSL Certificate on NGINX. If you need further assistance, please don’t hesitate to contact our support team.
Read Also: How to Install NGINX in WHM
Explore more hosting insights, tips and industry updates.
In the last part of SQL database mirroring, you have learned about database mirroring and…
Presentation: You might have noticed that bodHOST offers two special servers based on these two…
In this tutorial, we have explained to you how to reset your cPanel password and…