7 ms·
If You Can Read This, You're SNIing
- msiebuhr 13y agoOne.com uses SNI in order to sell SSL-enabled websites for somewhere around $2.5/month. Edit: We have around 1.-something million websites, though I don't know how many of those have SSL enabled. (Disclosure: I happen to work there.)
- smw 13y agoWhy is it impossible to buy web hosting from you without buying or transferring a domain?
- msiebuhr 13y agoI believe it is possible, if you beg the support enough. I do know we strongly discourage it though, as it makes some parts of shared hosting hard for us; ex. quickly move your website to another IP in case of a DDoS attack.
- msiebuhr 13y agoAfter re-reading it a few days later, I realize it reads a lot like advertisement. Some technical stuff wrt. SNI: We waited a long time for the SNI-support to be widespread enough for us to provide to the customers. Despite we have a lot of users in the 'mom-and-pops' demographic, which typically tend to have older equipment, I'm not aware of widespread complaints about it. It also turned out that most webservers can't handle being loaded with a few thousand SSL-certificates... Finally, we were somewhat nervous about the rumored 'SSL/TLS has lots of CPU usage', but it didn't turn out to be an issue AFAIK.
- mmastrac 13y agoOne of the more interesting facts from this was that Python2 will be supporting SNI out-of-the-box, and some of the related discussion on what will now be pushed into the 2.7 release: http://legacy.python.org/dev/peps/pep-0466/ http://legacy.python.org/dev/peps/pep-0466/ Since there's no other commentary yet, I'd just like to point out how much of a pain SNI has turned out to be for us in the release of the product I was just working on. Sure, major browsers all support it, but you get bit on things like automated testing tools (ie: Python2-based ones using old version of the requests library), third-party load-testing services (one we've contracted with did not support SNI but it's "on their roadmap"), Charles Proxy (we use this a lot for remote debugging on devices but SNI support is hit-and-miss), and all of the little things like old versions of cURL etc used in monitoring. In the end we ended up moving back to virtual-IP-based SSL to support the tooling. I was a little sad when this happened.
- jccooper 13y agoI say hurrah! There is an awful little dance you can do to make SNI work in 2.7 with requests but it is way too complicated for most deployments: https://github.com/kennethreitz/requests/blob/master/requests/packages/urllib3/contrib/pyopenssl.py https://github.com/kennethreitz/requests/blob/master/request... I've actually done this once. Took all day.
- kordless 13y agoI spent a whole day just trying to figure out what was wrong with my code on the site. Worked fine in dev, but when pushed to AppEngine, it just flat out broke my API calls. FWIW, if you want to get a virtual IP on AppEngine (which fixes the 'problem'), it's like $40-something a month extra.
- mmastrac 13y agoThat's what we ended up doing. It's expensive per month, but you can roll up multiple sites under a wildcard cert (I think -- I'd have to ask the devops guy who is thankfully dealing with this mess).
- harshreality 13y agoYes. The criteria for avoiding SNI is one IP per cert, not necessarily one IP per domain. If you can consolidate subdomains under one cert, you only need one IP. The issue that SNI deals with is with cert switching on a single ip:port... not anything inherently related to multiple domains on an IP.
- Lukasa 13y agoYeah, we're not delighted about how complicated this is, but it's really the best we could do. =( To be clear though, Requests only requires the three packages be installed, it'll do everything else automatically. Actually, is there interest in this being an installable add-on? Meaning you'd run: pip install requests[SNI] to get it?
- bigdubs 13y ago.net running on windows 7+ System.Net.WebRequest should support TLS SNI, the test I just ran on my machine worked fine (windows 7, .net 4.5) using System.Net; string url = "https://www.mnot.net/blog/2014/05/09/if_you_can_read_this_youre_sniing"; var request = (HttpWebRequest)WebRequest.Create(url); var response = (HttpWebResponse)request.GetResponse(); var resStream = response.GetResponseStream(); using(var sw = new System.IO.StreamReader(resStream)) { Console.WriteLine(sw.ReadToEnd()); } As far as I know System.Net.Security.SslStream does NOT support TLS+SNI though.
- snw 13y agorawdog/2.19 from the "Unknown" category is an RSS aggregator [1] that should hopefully get fixed with the mentioned python update... [1] http://offog.org/code/rawdog/ http://offog.org/code/rawdog/
- deleted 13y ago[deleted]
- liotier 13y ago> == Unknown > Not sure about these. shrug > - Gregarius/0.6.0 (+http://devlog.gregarius.net/docs/ua) This is from Gregarius - my long favorite RSS/Atom aggregator, written in PHP: http://sourceforge.net/projects/gregarius/ http://sourceforge.net/projects/gregarius/ (a bit dead nowadays... I'll have to migrate to day)
- mbi 13y agoAuthor of Gregarius here, have a hug. But yes: that project is dead.
- pas 13y agoAfter the notorious shutdown of Google Reader I hoped to just resurrect my old Gregarius deployment and was forced to face the projects death; so, what are you using instead nowadays? (Or, are you using any RSS/Atom reader at all?)
- tprynn 13y agoNot the author, but if you want to host your own you should consider goread (https://github.com/mjibson/goread https://github.com/mjibson/goread) or ttrss (http://tt-rss.org/redmine/projects/tt-rss/wiki http://tt-rss.org/redmine/projects/tt-rss/wiki). Goread.io is the hosted version of goread if you don't mind paying the $3 per month. Otherwise you have feedly, newsblur, theoldreader, ..., but goread is really the closest to Google Reader (clean/fast UI, keyboard shortcuts are the reason I pay).
- liotier 13y agoAfter much consideration, after using Lilina and then Gregarius with the Lilina theme when Lilina itself could not handle the number of inbound feeds anymore, I'm inclined to choose tt-rss... But I have not migrated yet.
- Gmo 13y agoOh, I want to thank you for Gregarius. I still use it to this day and haven't found any replacement I like so far (tiny tiny rss just did not cut it last time I checked, a year ago). May I ask why you decided to stop development ?
- agwa 13y agoIt looks like browsers basically all support SNI now, but unfortunately it also looks like that if you require SNI, you'll be giving up traffic from a fair number of RSS readers and search engine spiders, which makes this a non-starter for me. I'm surprised the author is OK giving up those 263 NewsBlur subscribers. I hope these RSS readers and spiders get fixed soon. I don't think there's a point trying to send back an error document to clients that don't support SNI, since the client will get a certificate error before seeing any error that you send it. On the other hand, the clients that don't support SNI also look like just the type of clients that don't properly check certificates. If that's true, you're better off winging it without SSLStrictSNIVHostCheck and hoping that these old clients will ignore the certificate error and then be routed to the correct vhost anyways via the Host: header.
- eli 13y agoAll people using browsers on a modern OS support it. I've still got about 9% of traffic on Windows XP.
- icebraining 13y agoUsing Chrome or Firefox on Windows XP also works. It's only Internet Explorer that's screwed up.
- eli 13y agoGood point! That looks like it cuts it in half -- 4 or 5%.
- voidlogic 13y agoWhat about a modern browser on XP?
- mmastrac 13y agoAs long as it doesn't use the built-in Windows HTTPS stack (wininet/schannel), it's fine -- modern Chrome and FF will work just fine in this regard.
- abritishguy 13y agoSNI is the default for Google App Engine - as market share of SNI sites increases the few RSS readers that don't currently support it will be forced to update or be ditched in favour of ones that do. We shouldn't let old code hold back the web.
- tombrossman 13y agoAgreed. You can probably drop SSL connections in favour of TLS only if you do this, too. I've done this on my work and personal sites and everything works fine for modern browsers. For example, the config for your Nginx server block can go like this, with no need to support SSL at all. > ssl_protocols TLSv1 TLSv1.1 TLSv1.2; I realise this excludes some traffic and I'm okay with it.
- markuskobler 13y agoI have taken exactly the same stance which has the added benefit you can also drop the vulnerable RC4 cyphers. https://wiki.mozilla.org/Security/Server_Side_TLS#RC4_weaknesses https://wiki.mozilla.org/Security/Server_Side_TLS#RC4_weakne...
- yuhong 12y agoYep, if you are requiring SNI, SSLv3 might as well be disabled as SNI will never work with it.
- stesch 13y agoYou can have SNI on Windows XP if you use a browser instead of Internet Explorer.
- tedchs 13y agoLooks like the web crawlers for Bing and Yahoo are not sending SNI, according to this reporting. Can anybody corroborate?
- jacquesm 13y agoWhy would you host a blog on a https url at all?
- ema 13y agoBecause the blog admin area should be on https anyway and it's an opportunity to play with https.
- MichaelGG 13y agoWhy not? Why shouldn't everything be encrypted? Yes, you're probably only leaking the specific page you visit, but the principle stands.
- rlpb 13y agoI like the idea of information that is public (eg. a blog, as opposed to your activity in your favorite webapp) being easily cached. You might appreciate your ISP's web proxy cache if you live in New Zealand, for example. It would be nice if everything magically worked in this case, but I don't think we're really there yet. And I'll admit there's a downside - SSL also buys you data integrity (eg. was the blog post modified in transit?) and you don't get that here. Still, I'm not convinced about SSL-by-default for general public information websites (with an obvious exception for sensitive health or political sites, etc). I also don't buy the "protect your readers' privacy" angle. To me, that's "provide your readers an illusion of privacy", since they still have to trust $random_website to not leak the logs they are able to gather. Readers who want identity privacy should use Tor or similar, and not be misled by https-everywhere.
- icebraining 13y agoIt'd be nice if we had a signing mechanism; it could reuse most of the mechanics of SSL encryption (same certs, same algorithms) and it'd provide tampering-proof communications would hindering caching. And it could even be done statically, without requiring more servers resources per request (e.g. as a step during static site generation).
- 13y ago
- kachnuv_ocasek 13y agoI find it ironic that when I try REDbot the page, I get 403 "TLS SNI Required."
- fhars 13y agoThat is not ironic, that is the point of the page: identify broken clients.
- BrandonM 13y agoPerhaps you missed that redbot.org is now one of the sites using SNI? That means that the tool can no longer connect to itself: https://redbot.org/?uri=https%3A%2F%2Fredbot.org https://redbot.org/?uri=https%3A%2F%2Fredbot.org
- mnot 13y agoI was wondering how long it would take someone to notice that...
- Scramblejams 13y agoAm I the only one deeply disappointed by SNI? Having the domain going out over plaintext is a major step down in privacy from the way it was before. (Yes, there's an additional leak in the form of a DNS lookup that has to happen, but as a client that's usually easy to address if you care.)
- computer 13y agoHow is it a step down? Without SNI, the public IP you connected to also uniquely identified the domain/cert you were visiting.
- Scramblejams 13y agoYou are absolutely correct, but in practice I believe it often works out differently. I imagine that under pre-SNI conditions, many hotels/free hotspots/university/work firewalls don't go to the trouble to actually connect to the IP to see if it matches their list of bad actors. And that guess has often been borne out for me where, for example, http://youtube.com http://youtube.com is blocked but https://youtube.com https://youtube.com is permitted. With SNI, they can easily passively sniff the domain you want and block and/or log it, no active measures like reverse lookups or probing connections required. Edit: Actually now that I think about it, could they just sniff the certificate offered by the server and get the same info? If so that's unfortunate, but plenty of firewalls don't seem to be doing that, as I noted above with my youtube example.
- mseebach 13y agoIf it's equally possible to sniff out the domain name, what makes you predict that more operators would go through the trouble under SNI than did before? The sites in question will likely be blocked soon enough, but it won't be because of SNI being less secure, it will be because more and more traffic will default to TLS - a development helped along by SNI, certainly - and the operators will notice and the gateway providers will add the required sniffing, covering both "old school" certts and SNI.
- Corrado 13y agoI really, really hope SNI takes off soon. Amazon just added SNI capability to their load balancers and it allows us to avoid spending $600/month in fees. Apparently, when you host a normal TLS connection on an ELB they have to provision an IP address for every endpoint in their network, which costs a lot of money. Using SNI allows them to use a single ELB endpoint for multiple domains, which saves us a ton of money. :)
- danielsju6 13y agoFYI it's not just IE and some oddballs you have to worry about. Last time I experimented I found that Android's Downloads manager ([yes even KitKat] and probably some other popular Java clients while you're at it) have trouble with SNI. Worth noting if anyone else is thinking of switching.