title: How can I install SSL on localhost in Ubuntu?
body: <p>I want to install an SSL certificate on my localhost in Ubuntu environment because I can't work on the production server directly. I have to put some conditions in my code on the basis of whether the page is HTTP or HTTPS.</p>
  
  <p>How can I do this?</p>