Question

Setting Up SSL in my droplet

I am trying to setup an development environment where i need LAMP stack with ssl. I created a droplet. Used one click LAMP installation and setup basic server then mapped that droplet to a subdomain (http://shopifyapp.sjranjan.com/) by creating a A record (This domain is being managed at another service).

Now i have to enable https in this setup where i did follow this link to set up Lets Encrypt SSL.

https://www.digitalocean.com/community/tutorials/how-to-use-certbot-standalone-mode-to-retrieve-let-s-encrypt-ssl-certificates-on-ubuntu-1804

That also successfully happened and got the certificate files generated here: /etc/letsencrypt/live/shopifyapp.sjranjan.com

I also restarted the apache after this point. Now i have no clue how to proceed further how to enable https://shopifyapp.sjranjan.com/ working.

  • I did add this certification details to ‘Security->Certificates->Add Certificate->Bring Your Own Cerificate’ option in digital ocean login. * I tried looking for httpd.conf file to see if i can modify any setting to enable this. This droplet has ubuntu and i could not find any such file.

Now what is it exactly i need to do to enable https working in this droplet ? I am new to all this… so kind of very confused. Someone kindly help.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there @sjranjan,

As you already have Apache installed I would recommend following the steps from this tutorial here on how to secure Apache with Let’s Encrypt rather than the stand-alone tutorial:

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04

This would be the better approach as this would automatically configure your Apache service to use the new SSL by creating a virtual host for your site.

Hope that this helps! Regards, Bobby