Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Fix Fastmail sending the wrong certificate - #2696

Merged
jsha merged 2 commits into
masterfrom
unknown repository
Aug 27, 2015
Merged

Fix Fastmail sending the wrong certificate#2696
jsha merged 2 commits into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Aug 26, 2015

Copy link
Copy Markdown

The server sends a different, non-EV, certificate if you go to https://fastmail.com rather than https://www.fastmail.com, even though you get redirected to www the non-EV certificate persists.

I let Fastmail know about this a few months ago but they haven't fixed it.

cbvi added 2 commits August 27, 2015 02:20
The server sends a different, non-EV, certificate if you go to
https://fastmail.com rather than https://www.fastmail.com, even though
you get redirected to www the non-EV certificate persists.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer not to redirect between domains when the only difference is an EV cert vs a non-EV cert. So long as fastmail.com (sans www) answers HTTPS correctly, I think serving the EV cert on that domain is up to the site operator.

I do appreciate the test url additions, though! If you'd like to submit this ruleset as a straight rewrite without changing domain names.

Also, looking at the ruleset more closely it looks like the existing rule rewrites fastmail.fm to fastmail.com unnecessarily: fastmail.fm answers HTTPS correctly.

@ghost

ghost commented Aug 27, 2015

Copy link
Copy Markdown
Author

I'd prefer not to redirect between domains when the only difference is an EV cert vs a non-EV cert. So long as fastmail.com (sans www) answers HTTPS correctly, I think serving the EV cert on that domain is up to the site operator.

It's not really a conscious decision. More a corner-case in the server configuration that HTTPS Everywhere exposes.

http://fastmail.com does a 301 redirect to https://www.fastmail.com

https://fastmail.com also does a 301 redirect to https://www.fastmail.com

The problem is when you hit https://fastmail.com first, it negotiates a TLS connection and gets a cert for *.fastmail.com instead of the EV-cert for www.fastmail.com and then because the two hosts share the same IP the browser doesn't renegotiate the TLS connection when it redirects and keeps the non-EV wildcard cert it already has. Essentially it still says "www.fastmail.com" in the address bar but because you came in through https://fastmail.com you have a different cert than if you had gone directly to https://www...

The thing is most people will never encounter this (without HTTPS Everywhere) because no one types "https://fastmail.com" in the address bar. They type "fastmail.com", which hits the http:// site first and get immediately redirected to https://www and therefore get the EV cert. The problem is HTTPS Everywhere makes typing "fastmail.com" equivalent to typing "https://fastmail.com"

@jsha

jsha commented Aug 27, 2015

Copy link
Copy Markdown
Member

You make a good point that this is something we trigger rather than the provider triggering. Given that, and the fact that this is a no-www -> www rewrite, I'm okay with this.

jsha added a commit that referenced this pull request Aug 27, 2015
Fix Fastmail sending the wrong certificate
@jsha
jsha merged commit d8c5bfe into EFForg:master Aug 27, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants