Ubuntu Nginx SSL: How to install an SSL certificate on Ubuntu for Nginx
https://www.godaddy.com/garage/how-to-install-an-ssl-certificate-on-ubuntu-for-nginx/
Last updated
https://www.godaddy.com/garage/how-to-install-an-ssl-certificate-on-ubuntu-for-nginx/
Last updated
Steven Vaughan-Nichols July 14, 2015Sky-high website security
Did you install an SSL certificate on your Ubuntu hosted server using Nginx as the Web server? If not, why risk blowing your website security? With hackers targeting businesses large and small, even Google is strongly encouraging website owners to get implement SSL certificates. The search engine boosts search rankings web pages and blog posts that encrypt transmissions with the https:// prefix. Now, that type of security requires an X.509 Digital Certificate, commonly referred to as a Secure Sockets Layer or SSL certificate.
To get started, you’ll first need to acquire a digital certificate, then install it on an Ubuntu hosted server using Nginx as the Web server. Read on for a bit of background on the certificates and exact steps for installing.
A trusted third party called a Certificate Authority (CA) issues the three types of digital certificates: Domain Validation (DV), Organization Validation (OV), and Extended Validation (EV). The CA guarantees the digital certificate’s authenticity with a digital signature so that end users (or their software) can trust that the server is really the site it purports to be. Not sure which digital certificate is your best bet? I’ve detailed each below, listing them from least to most secure.
Domain Validation certificate states that the domain is registered by someone with admin rights to the website. If the certificate is valid and signed by a trusted CA, a browser connecting to the site will inform you that it has successfully secured an HTTPS connection. A DV is all you need to secure a blog or simple website.
An Organization Validation certificate validates the domain ownership and includes ownership information such as the site owner’s name, city, state, and country.
An Extended Validation certificate authenticates the domain ownership and organization information, as well as your organization’s legal existence. This is the go-to certificate for those engaging in e-commerce. In many browsers, you can easily identify websites with an EV SSL certificate by their green address bars.
To get started, you’ll first need to purchase or acquire the SSL certificate. If needed, here are additional details on how to request an SSL certificate and verify it.
If you have purchased a CA-approved SSL certificate, delivery might take from hours for a DV to weeks for an EV. The CA will inform you when the certificate is ready for download. Here’s how to retrieve it in seven steps:
Log into Account Manager.
Click SSL Certificates.
Pick the certificate you want to use and click Manage.
Next to the certificate you want to use, in the Actions column, click View Status.
Click Download.
Select the server type, and then click Download Zip File.
Safely store the downloaded file for the future.
Installing an SSL digital certificate for Nginx won’t bust the brain.
Make sure the OpenSSL client software needed for a secure website is in place with:
This will either install OpenSSL or inform you that it’s already present.
Here’s an example using the vi text processor:
Once open, the file can be edited so that it points to the correct files in the Web server. It will look something like:
Use the following command to restart the Web server:
The secured site should be available at https://www.your_very_own_domain.com.
Learn about the four types of SSL certificates available: