From the source it looks like it just sends a redirect from http://<page> to https://<page> if the server is not in development mode. It doesn't actually set up the encryption for you. So you would already have to have the secure version of the page working, and then this module would redirect from the insecure page to the secure page. There are plenty of tutorials on how to set up ssl, depending on your configuration. Generally involves making a certificate using openssl or some other tool, optionally getting it signed by a Certificate Authority, and then configuring your web server to utilize that certificate, conventionally listening on non secure port 80 and additionally with the certificate option on port 443.

After all that is working, it looks like that module redirects all traffic. So if you navigate to http://website.com, Dancer will tell your browser to go to https://website.com. And so on for every valid page that Dancer is responsible for. That is all that module does, looks like to me.

In reply to Re: Perl Dancer and SSL setup by trippledubs
in thread Perl Dancer and SSL setup by Buuntu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.