Http-https transitions and relative URLs
nedbatchelder.com
nedbatchelder.com
It's rails code, but the concept could be ported to other languages/frameworks.
We pay Akamai a non-trivial amount of money for SSL service, and they in fact host separate certificates for us (in addition to our origin servers hosting "our" own [different] certificates).
Edit: Just to clarify, even if the certificate is authenticated, it is STILL bringing the third party into the communication. Or am I misunderstanding the implications?
Whether the url has explicit http or https prefixes should not affect how your browser negotiates the connection to external domains.
If domain X starts referencing material from domain Y within its secure pages, I would like to be aware of this. My understanding is that once such material is incorporated into the browser-constructed page representation, it has full access to that representation. If the inclusion is a component that has the ability to control the browser (e.g. a script), then that component can observe or manipulate the page and its activity.
That is one reason not to trust an https page that includes content references/retrieved via http; the latter is easily subjected to a man in the middle attack.
The technique described in the article avoids this point, but it doesn't describe what if any notice browsers provide to the user that a second, authenticated domain/certificate is involved in the current communication.
Maybe I'm incorrect in my understanding (I'm no expert in this, by any means). But this is what forms the basis of my question.
Edit: I'll leave my question as a testament to my over-tired, over-caffeinated rashness. I take your point now, more fully, that specifying a link having the protocol prefixed, as opposed to this, will produce the same result end in the browser.
So, I guess my question reduces to a "browser 101" question of what does happen under those circumstances, with regard to browser presentation. Which I really should be able to determine on my own, with a bit of googling and/or experimentation.
My apology for putting my typing ahead of more collected thought.
I haven't spent much time addressing this particular area. Most of my work has been more behind the scenes and in communications paths where trust is already established.
When EV certificates came out (the super HTTPS verification that turns the address bar green), Opera developers and the standards body had differing opinions about this very issue. http://my.opera.com/yngve/blog/2008/05/23/lowering-the-ev-ba... I bring this up to show that it is a tricky issue and even experts in the field disagree about it.
If so, I'd prefer an option to see all the certificate chains involved in loading a page's content. Maybe most users won't care, but some will, and it would keep those details from remaining hidden or difficult/time consuming to access.
Somewhat related to this, I continue to be somewhat frustrated at the amount of dialog navigation that is required to view certificate chains in some browsers (e.g. Firefox 3 made the chain viewing dialog deeper nested within a hierarchy of dialog navigation).
My perspective is that, even when users don't fully understand an item, they are good at noticing changes -- we're wired to do so. If the chain is easily accessed, and users are taught to give it a glance, they are likely to notice if/when it changes, particularly for regularly visited sites. They may not know exactly what is going on, but it would likely be enough to inject caution and a google (twitter, whatever) for answers.
Perhaps I should have waited before responding; I'm (still) feeling kind of off, today. Apologies to anyone annoyed by my contributions here.