NGINX Server setup for TrustCor SSL


This article will detail the steps for obtaining an SSL on an NGINX server using TrustCor Premium DV Certificates.

1. Purchase a TrustCor Premium DV Certificate from No-IP.

To learn more about this process, please review our article:
How to Purchase and Configure a TrustCor Premium DV SSL

2. Generate the private key and CSR from the NGINX server by running this command:

(in this example, we use “nginx1-trustcor” as the name for the key and csr but you can name your own.)

sudo openssl req -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx1-trustcor.key -out /etc/ssl/certs/nginx1-trustcor.csr

3. This will prompt you to fill out the standard info for a CSR, such as country, state, FQDN, etc.
Do not set a challenge password.

a1d841e7-5241-402d-93b0-a4d12c30e451

4. View the CSR by running this command:

(you would replace nginx1-trustcor.csr with the name you provided in step 2)

cat /etc/ssl/certs/nginx1-trustcor.csr

55880475-5baf-412a-8770-481e492c15de

5. Add your CSR to No-IP

Copy the CSR, including everything from

-----BEGIN CERTIFICATE-----

to

-----END CERTIFICATE-----

From your No-IP account, Click My Services at the left, then SSL Certificates.
Locate your available certificate and select Add CSR.

0369511e-bf91-4407-af5e-dd01cc2c3a3b

Here, you will choose your server type from the drop down menu, paste the CSR we just copied, then click the green Add CSR button to continue.

48231884-08c4-4dda-b391-b131ad513045

6. You will now see the section called “SSL Contact Information“.

Fill in the information required. The City, State and Country will be auto-filled from the information generated in the CSR you created. Click the green Confirm button when finished.

e1be18c1-2115-44d4-846f-fb0097a91a5e

7. Finally, you will see the section called “DNS Verification Record”.

If your domain is registered with us and you have Plus Managed DNS, we will add the DNS Verification TXT record automatically.

If you are an Enhanced user with us, you will need to copy and paste the DNS Verification TXT record to your DNS Records manually.

If your domain is not registered with No-IP, you will need to copy and paste the DNS Verification TXT record to your DNS Records manually at your current DNS provider.

Click the Continue button once you have review and/or copied this information.

4c6832e0-19df-4b8d-ba73-eccb4c84d6ed

8. Wait for Verification. Once your TXT record is created, the SSL should be issued within 30 minutes or less.

If you have not received it within 30 minutes please contact No-IP Support. Until then, the Status will remain in Pending Verification.

bedc2f0e-faa9-4f57-a9cb-9c27b7dccbf6

After 30 minutes, TrustCor will verify the TXT record and the Status will change to Active.

78f7c81a-42d5-4283-867d-795db10c34b5

9. Download the signed-cert from the No-IP SSL Manager.

You may need the PEM, PEM-CHAIN or other file types, depending on your servers requirements.
From your No-IP account, click My Services at the left, then SSL Certificates.
Find your TrustCor Premium DV and click the Download button.

51d62093-a89c-4629-bb69-2be7c11076af

Here, use the dropdown menu to select the file type and click the Download button to obtain the file.

bb922aa6-0a4b-48fe-87ff-cf3262568569

You may need to make server configurations, ie, enable SSL parameters on listening sockets in the server block, and setting the locations of the server certificate and private key.

While we do not support this level of server configuration, you can find many useful guides on the internet, such as this official NGINX one:
http://nginx.org/en/docs/http/configuring_https_servers.html

As with any changes to NGINX, you may need to restart the server for these changes to take effect.

More Information

You can find more information about installing TrustCor SSLs and obtaining TrustCor’s Intermediate Certificates from their Knowledge Base here.