This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

Introducing Cloudways Community Forum. Start Discussions and Get Instant Help From Cloudways Community. JOIN NOW

How to Install Your Own SSL Certificate on an ApplicationJanuary 23, 2014

 

In this KB

  • Connecting to application via SFTP
  • Updating certificate file
  • Updating private key file
  • Restarting Nginx (Web Server)

 

We have explained in another guide on how you can get and deploy an SSL certificate (assuming you do not have any certificate already) for your application.

If you have previously purchased a certificate, follow the instructions in this guide to deploy it to your application on the Cloudways Platform.

Step 1: Connect to the Application via SFTP

SFTP

Follow the instructions in this SFTP guide to open an SFTP session to the target application.

If you connect using the application credentials, you are going to land directly into the application folder. Then you just need to enter into the SSL directory.

Alternatively, if you connect using the master credentials, you will need to first enter your target application folder and then into the SSL directory.

1_SSL

Step 2: Update the Certificate File

Once in the SSL folder, right click on the server.crt file and edit it.

Certificate Update in SFTP

Replace the content of the server.crt file with the content of your own certificate file.

Server.crt

Now, copy the intermediate certificates under the certificate you have pasted in the previous step. Make sure to follow this order (application certificate and then intermediate certificates).

begin certificate

Step 3: Update the Private Key File

Right click on the server.key file and edit it.

update private key

Replace the content again with the content of your private key (the one you used to generate your certificate).

server key

Step 4: Restart Nginx (Web Server)

  1. Click on Servers in the top menu bar.
  2. Choose the server you have deployed your own certificate to.
  3. Now under the Server Management area, click on the Manage Services section.
  4. Restart the Nginx service.

Cloudways Manage Services

That’s it! Your certificate should now be properly installed.

Have Questions? Ask From Our Helpful Community

Comments are closed.

Do you still need help?

Our Technical Support team is always at work.