title: How do I setup my server with https and perl Dancer as a standalone server?
body: <p>We need to create a quick demo of a web service using Perl's Dancer as a standalone webserver, and Twitter API. </p>
  
  <p>Unforunately, <a href="https://dev.twitter.com/docs/api/1.1" rel="nofollow">Twitter API</a> only allows https/ssl requests but I have no idea how to set this up on a server that isn't using Apache.</p>
  
  <p>I have a <a href="http://ssl.comodo.com/ev-ssl-certificates.php" rel="nofollow">Comodo EV Cert</a>, and I think a correct pem file in the /etc/ssl/localcerts directory on my server.</p>
  
  <p>I also have <a href="http://search.cpan.org/~hobbestig/Dancer-Plugin-RequireSSL-0.121331/lib/Dancer/Plugin/RequireSSL.pm" rel="nofollow">Dancer::Plugin::RequireSSL</a> and <a href="http://search.cpan.org/dist/Crypt-SSLeay/SSLeay.pm" rel="nofollow">Crypt::SSLeay</a> installed but the instructions aren't clear to me. </p>
  
  <p>Do I add it to the project/bin/app.pl file?</p>
  
  <p>Do I need to add environment variables to bash?</p>
  
  <p>How do I configure <a href="http://search.cpan.org/~hobbestig/Dancer-Plugin-RequireSSL-0.121331/lib/Dancer/Plugin/RequireSSL.pm" rel="nofollow">Dancer to use https</a> for making calls to Twitter API using <a href="http://search.cpan.org/~mmims/Net-Twitter-4.01003/lib/Net/Twitter.pod" rel="nofollow">Net::Twitter</a>?</p>