GitHub User: vitobotta
It depends on which web server you're using (Apache? Nginx?). You ask for "step by step" instructions, but did you watch the screencast at all? It does explain this stuff...
Anyway I think you should chain / bundle the certs in the following order in your case:
cat WWW.EXAMPLE.COM.crt NetworkSolutions_CA.crt UTNAddTrustServer_CA.crt AddTrustExternalCARoot.crt > cert-bundle.crt
Then just follow the directions in the screencast.
Great episode, as usual. This one and the previous are particularly useful as so many people just don't pay enough attention to these issues.
I usually prefer forcing https with nginx directly, though, rather than in the application; it's simpler, somewhat "lighter" and I don't need to have to worry about this being properly configured and tested in the app. It's more like set it and forget it.
E.g. I usually have two "server" blocks, one for http and the other with https enabled, and the http block only contains:
`rewrite ^(.*) https://$server_name$1 permanent;`
Besides, I don't think it's a good idea either to only force SSL for some sections of an application: cookies travel with all http requests, regardless of whether https is in use or not. In theory if there is even a single thing on a site that requires authentication, the whole app should run under https, not only some sections for this very reason. I blogged about this not long ago.
A couple tips:
there's a gem called powder that makes it easier/nicer to work with Pow.
I can't remember whether it was this episode or the previous one that suggested to hardcode 'https' in links and refs to images when needed. Something like:
You can also just omit the protocol altogether - this will make sure that all the resources loaded / linked on the page "follow" the protocol used by the page itself, i.e.:
This way all images etc will use http or https depending on the protocol used by the page itself.