Ubuntu Nginx SSL: How to install an SSL certificate on Ubuntu for Nginx.

SecurityCategory
5 min read
Adem Asha

Did you install an SSL certificate on your Ubuntu hosted server by installing 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 nginx 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.

What is Ubuntu Nginx?

It is an open source web server that is often used as reverse proxy server or HTTP cache. It is available for Linux for free.

What is the use of ubuntu nginx?

NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, ip address, and more. Nginx web server was designed for maximum performance and stability.

Advanced Load Balancer, Web Server, & Reverse Proxy - NGINX

Available SSL digital certificates for a Nginx server on Ubuntu

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 (DV)

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. It is nothing too complicated or too technical, it doesn’t offer any firewall or any high level protection or any server blocks or command lines.

Organization Validation (OV)

An Organization Validation certificate validates the domain ownership and includes ownership information such as the site owner’s name, city, state, and country. Again, nothing too fancy.

Extended Validation (EV)

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. Sites without SSL certificates will have http protocol and http traffic tend to be less than sites with https protocol. Sites without an SSL certificate don’t have permissions to process payments either.

Related: What is an SSL certificate.

How to secure the service with a firewall like SSL certificate

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:

  1. Log into Account Manager.
  2. Click SSL Certificates.
  3. Pick the certificate you want to use and click Manage.
  4. Next to the certificate you want to use, in the Actions column, click View Status.
  5. Click Download.
  6. Select the server type, and then click Download Zip File.
  7. Safely store the downloaded file for the future.

How to install an SSL certificate for the Nginx server on Ubuntu

Installing an SSL digital certificate for Nginx won’t bust the brain.

Useful links: How to configure Nginx and where to get the nginx configuration file from.

1. Log into the server using SSH.

2. Check the OpenSSL client software.

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.

3. Make a directory to store the server key and certificate.

4. Copy the SSL certificate file and server key.

5. Edit the ssl.conf or httpd.conf file.

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. The html file will look something like:

6. Reload the Web server.

Use the following command to restart the Web server:

This systemctl restart nginx for you and the secured site should be available at https://example.com.

Learn about the four types of SSL certificates available:

Wildcard SSL Certificate
Extended Validation SSL Certificate
SAN SSL Certificate
Organization Validation SSL Certificate

Efficiently deliver better results by getting an SSL for your ubuntu Nginx server.

When you use The Hub from GoDaddy Pro, suddenly there’s more time in your day to focus on what matters most. Forget about juggling admin tasks. Reclaim your time and use it to make clients feel like the center of your universe.

Let’s encrypt you site, Sign up for Free