r/programming • u/Arkaad • Nov 24 '16
Let's Encrypt Everything
https://blog.codinghorror.com/lets-encrypt-everything/333
u/ares623 Nov 24 '16
→ More replies (5)84
u/slanktapper Nov 24 '16 edited Nov 24 '16
They have a lot of title sponsors and they do some really good work.
Considering they're giving you https for free and the old standard was $89+/yr I don't mind donating to them, and probably should have sooner
Your donation will be shown on the fundraiser page as slanktapper, $10 USD
→ More replies (12)36
u/salgat Nov 24 '16
Yeah it seems like Google in particular is pushing them hard as a justification for eventually requiring all websites to use https to avoid getting that "Insecure Website" warning in Chrome.
48
u/Seref15 Nov 24 '16
At work, every web service that I put together I serve over HTTPS by reverse proxy/URL redirect. That works 90% of the time, but the other 10% something in the web app I'm serving breaks because it fails to follow the redirect.
Is there a "correct" way to implement HTTPS that's not with redirects? That's the only way I've ever been taught.
0
Nov 24 '16
[deleted]
36
u/xiongchiamiov Nov 24 '16
And ask to have it put in the hsts preload list so the user doesn't even have to make one request over unencrypted http.
0
Nov 24 '16
[deleted]
6
u/xiongchiamiov Nov 24 '16
Yes, both of these steps should have some careful testing in place first. :)
2
u/tequila13 Nov 24 '16
Doesn't the "Forget about this site" option clear the HSTS status? It's 3 mouse clicks in Firefox, not exactly complicated.
13
u/Klathmon Nov 24 '16
No, the HSTS preload list gets compiled into the browser. There is no "undo".
5
u/AyrA_ch Nov 24 '16
Yes there is. You have to remove the "preload" part of the HSTS header and for firefox, you can set the max-age to 0. Since they use the chromium list, you can send an E-mail to the address specified on the bottom of the HSTS preload registration service and thell them to remove the site. Of course this is as slow as adding to the list was. I had to do that once because I acquired a domain that was in that list, probably because of the previous owner.
→ More replies (4)4
u/ayeshrajans Nov 24 '16
You can clear your own HSTS cache, but your users will get certificate warnings, and unlike regular HTTPS warnings, users cannot add an exception for your case.
4
u/the_gnarts Nov 24 '16
It tells the browser that it should always use HTTPS even if the user (or a link) says to use HTTP.
And you’ll be fucked if you ever open a site that serves different pages over HTTPS than over HTTP. Now you don’t have the choice any longer.
(Yes, I emailed the admin of that site I was referring to and after a couple months they fixed it. Which was only possible thanks to Letsencrypt, so big thanks to them for the n-th time.)
62
Nov 24 '16
I have a client that refuses to use Ethernet to pass data within their own network for security reasons.
Now we're using serial... To a computer connected to the network. Security measures according to non-IT people.
I wish they could be convinced to use encryption.
53
u/scratchisthebest Nov 25 '16
Ah yes, security through nobody-has-the-right-cable-anymore
6
Nov 26 '16
I know, right? We explained why this is dumb, but they just dogmatically said that "the internet is not secure so no ethernet".
21
Nov 25 '16
What the actual fuck... What industry are they in?
12
2
Nov 26 '16
We're making software for an integrator that is selling directly to the end customer, so I don't know the details, but I think they make machines used in pharmaceutical production.
1
21
u/unkz Nov 24 '16
So, how do you as an end user "use" encryption on the web? Mostly, you lobby for the websites you use regularly to adopt it. And it's working. In the last year, the use of HTTPS by default on websites has doubled.
That had nothing to do with end user lobbying though. That's directly a result of a Google policy that that has been essentially forced on webmasters who want to stay competitive in the SERPS. Not that I'm complaining, it's a good thing, but Joe User had nothing to do with that.
311
u/VGPowerlord Nov 24 '16 edited Nov 24 '16
I feel like every time I read a Jeff Atwood article, I have to do fact checking. This one is no exception.
The performance penalty of HTTPS is gone, in fact, HTTPS arguably performs better than HTTP on modern devices.
Actually, this is false.
HTTPS still has CPU and bandwidth performance penalties. They may not be as noticeable as in the past, but they are still present, particularly as encryption algorithms get more complex (there's a reason elliptical curve cryptography is recommended for HTTPS now).
HTTP/2 was not finalized at the time the linked benchmark was posted.
...and because of that, this benchmark is out of date. Since it was published, HTTP/2 was revised to allow unencrypted connections. Which removes speed as a factor. And with that out of the way, HTTP will outperform HTTPS on the same protocol.
Using HTTPS means nobody can tamper with the content in your web browser.
Remember what I said before when I mentioned ECC Cryptography? It's not enough for a site to simply use HTTPS, they also have to use an encryption protocol that isn't yet broken. For example, all versions of SSL are currently broken. TLS supports some encryption protocols that are broken.
Browser manufacturers tend to update their browsers to reject broken protocols, but that doesn't help in businesses where they lock browsers at specific versions. See also: The IE6 problem, and its successor the IE8 problem. The flip side of the coin is application and web servers that stick with older protocols as well; I had to research this at my last job to bring out Oracle App Servers protocol list up to date to pass security scans.
182
u/pfg1 Nov 24 '16
There is no browser support for unencrypted HTTP/2, and no major browser vendor has plans to implement it. It might very well be impossible to deploy it without TLS for the same reasons browsers don't support HTTP 1.1 pipelining (proxies). The statement is quite accurate if you keep that in mind.
Similarly, since he's talking about modern devices, the CPU overhead for handshakes and encryption is negligible. I doubt you'd notice it on any desktop hardware released in the last 10 years, and as for mobile phones, it might be noticeable on low-end phones from a couple of years ago, but then again the handshakes and encryption are probably not what's going to be slowing down most sites on those phones. (I'm thinking JS performance, etc.)
46
u/damg Nov 24 '16
It still feels disingenuous to simply say HTTPS is faster than HTTP since it implies that encryption is what makes it faster, not that it's a prerequisite for a faster protocol.
17
u/Klathmon Nov 24 '16
Actually there are some tls 1.3 tests that would allow a zero RTT open, that's faster.
11
u/omnigrok Nov 24 '16
Yeah, but those are probably a bad idea. The 0-RTT opens for initial handshakes are breaking perfect forward secrecy (for resumptions, sure, go for it).
→ More replies (2)→ More replies (3)12
u/jonbonazza Nov 24 '16
It should also be mentioned that HTTP/2 is not free. Both the server and client must support it for it to work. Telling people that don't know any better that HTTPS will perform better than HTTP when their servers likely don't support it is doing them a disservice.
35
u/veeti Nov 24 '16
25
u/swishspitrinse Nov 24 '16
I was hoping to see a single-word answer as a heading, centred on a plain white page.
10
u/VanFailin Nov 24 '16
That is the convention for web sites of that form, though they're usually built for more cut-and-dry questions
→ More replies (1)18
u/dv_ Nov 24 '16
One thing I always wondered about HTTPS is how it is supposed to work with the internet of things. So I buy some small device with Internet connectivity. And this device supports only https, not http. How is the certificate registered? Who signs the certificate? And what if the certificate expires? Can you really expect Joe Average to handle self-signed certificates properly?
17
u/Klathmon Nov 24 '16
Automate it.
You probably don't know the ins and outs of how a secure bootloader works with code signing, but that doesn't stop your PC, Phone, and even game consoles from having them.
Something like LE with a button you can hit to setup a cert when you first setup the device and you are golden.
7
u/dv_ Nov 24 '16
Any articles on how to do that? I had the problem a while ago and decided to postpone HTTPS.
3
u/Klathmon Nov 24 '16
It would be something the device manufacturer would need to do.
6
u/dv_ Nov 24 '16
No, I mean as a developer. I wrote userspace software which contains an HTTP server, and assembled a BSP based on Yocto.
I could setup a cert with the push of a button, but that would be a self-signed cert, wouldn't it?
→ More replies (8)1
u/tonyp7 Nov 25 '16
It could be a self signed certificate valid for 100 years.
Browsers are the ones enforcing the trusted chain, which might not matter at all on a IoT device.
1
u/dv_ Nov 25 '16
Well, okay. But the self-signed cert thing does matter for web interfaces, for example. The self-signed cert warning is not something a regular user will be able to handle properly I guess.
9
u/jmtd Nov 24 '16
I feel like every time I read a Jeff Atwood article, I have to do fact checking.
I usually have to double-check the date. I would have thought this was written 6 months ago if I hadn't checked.
14
32
u/VGPowerlord Nov 24 '16
As a company, we've donated a Discourse hosted support community
Also, don't get me started about Discourse, where members of a specific community of software developers, that were testing Discourse at Jeff Atwood's request, got mass banned from the Discourse Support forums for pointing out that something looked different in the mobile app versus the web browser on the same phone.
9
u/NeoKabuto Nov 24 '16
I didn't have time to read through all 58 pages there, but did he ever apologize or anything?
10
u/VGPowerlord Nov 24 '16
No.
In fact, he renamed his account on The Daily WTF to end and removed its avatar. I believe his profile said something about encouraging us to move to a different forum software. I think profile messages got lost at some point, though, because...
The Daily WTF no longers runs Discord, but migrated to new forum software. While it has its own bugs, its owners are willing to listen to our bug reports.
2
u/NeoKabuto Nov 24 '16
No.
In fact, he renamed his account on The Daily WTF to end and removed its avatar. I believe his profile said something about encouraging us to move to a different forum software
That's about what I expected, but with something ruder as the message.
2
1
u/WishCow Nov 25 '16
Oh what the fuck, I thought Jeff Atwood is a good guy, codinghorror was one of the first tech blogs I started reading. This totally destroyed all my respect for him :/
1
u/krakentoa Nov 28 '16
Jesus. I mean, I saw some posts where he was less than nice, but thedailywtf is no better, judging by the way they posted the bug. I guess when you talk with fire someone is bound to explode,but that's my view.
22
u/neoKushan Nov 24 '16
For example, all versions of SSL are currently broken. TLS supports some encryption protocols that are broken.
I get that you're clever enough to know that TLS superceded SSL many years ago, but for the purpose of this conversation we all know that "SSL" means TLS.
There's no need to be pedantic over the term being used; if you know the distinction between SSL and TLS, you'll know the context means TLS is inferred. If you don't know the distinction, then you'll assume SSL is the modern, secure SSL that everyone's talking about.
7
u/VGPowerlord Nov 24 '16 edited Nov 24 '16
Protocol versions are important when you're talking about security. It hasn't even been two years since SSLv3 became disabled in browsers following the POODLE attack.
Yes, you read that right, SSLv3 was still in use through December 2014, 18 years after it was originally introduced.
It wasn't blocked because it was old, it was blocked because all of its Ciphers were CBC Ciphers. CBC Ciphers were what POODLE actually attacked and it affected all versions of TLS as well. Hence why ECC Ciphers are the current recommendation.
For that matter, if you run a website that is PCI compliant, you must run TLS 1.1 or higher.
Edit: Side note, I'm talking about the actual protocols not the certificates.
3
3
u/neoKushan Nov 24 '16
I don't disagree with your point, I'm simply saying that making the distinction between SSL and TLS is rather unnecessary. If you feel the distinction is important, then you also need to specify which TLS version you're referring to.
So in conversation "TLS" just means TLS in general and assumptions have to be made. "SSL" is more or less "TLS" in the same context.
However, saying TLS1.3 is very different and in that case, TLS1.3 and SSL are not the same thing. But in that context, SSL is meaningless (as you say, SSLv3 would be the correct terminology).
1
u/Compizfox Nov 24 '16 edited Nov 24 '16
It wasn't blocked because it was old, it was blocked because all of its Ciphers were CBC Ciphers.
Well, there was also RC4 (which was even encouraged for a short period of time to mitigate POODLE!), which admittedly isn't much better because it's weak.
CBC Ciphers were what POODLE actually attacked and it affected all versions of TLS as well. Hence why ECC Ciphers are the current recommendation.
CBC is just a block cipher mode of operation. While ECC is one of the options, it's not the only alternative. There is also AES-GCM, which doesn't use padding and is thus not vulnerable to padding oracle attacks.
CBC Ciphers were what POODLE actually attacked and it affected all versions of TLS as well. Hence why ECC Ciphers are the current recommendation.
An important thing to understand about POODLE against TLS is that it is an implementation bug, not a protocol bug like it is for POODLE against SSLv3. In other words, all SSLv3 implementations are inherently vulnerable to POODLE, but only 10% of TLS implementations (mostly outdated SSL libraries on embedded devices) are vulnerable to POODLE against TLS.
https://crypto.stackexchange.com/questions/27856/poodle-attack-on-tls-1-2
→ More replies (5)0
u/dads1w6 Nov 24 '16 edited Nov 24 '16
At no point did /u/VGPowerlord call out anybody's use of the term SSL. He or she is pretty clearly introducing an original point of discussion. The distinction between the two is so totally meant to clarify the train of thought behind his or her own message, and not at all in reference to someone else's comments. Which means the only one being an obnoxious pedant here is you.
2
u/happycynic Nov 24 '16
Cannot up-vote this enough. We have to terminate SSL connections in the tens of thousands per second. The overhead (and additional cost) is very significant. Also, people don't take into account new requirements for HTTPS for various browsers. Larger key sizes and newer algorithms do incur more overhead.
1
u/RagingOrangutan Nov 24 '16
Yeah, I was annoyed by this. The benchmark he linked is poor quality to begin with, but worse off it's a comparison of HTTPS, HTTP/2, and SPDY protocols. There's no way to draw any meaningful conclusions about whether encrypted connections perform better or worse from that.
And when he says that Comcast will insert banners into your content, he isn't exactly wrong, but saying it that way makes it sound like they're sticking advertisements into your page. In fact they are just giving sporadic notices that someone complained about you. Annoying for sure, but this isn't "ads added to all your web browsing."
1
u/CanYouDigItHombre Nov 26 '16
What about this?
Using HTTPS means nobody can tamper with the content in your web browser
AFAIK the data is encrypted not sign. How would anyone know if you change a few pixels or bytes in a video/sound stream or html page? (for example to intentionally break JS on a site you don't like)
→ More replies (43)1
u/______DEADPOOL______ Nov 24 '16
For example, all versions of SSL are currently broken. TLS supports some encryption protocols that are broken.
Wait, is there a way to tell if my browser is using https that is not broken?
1
u/ScrewAttackThis Nov 25 '16
If you're using Chrome, you can get the connection details by opening the dev tools and going to the security tab. This is what I get for Reddit:
The connection to this site is encrypted and authenticated using a strong protocol (TLS 1.2), a strong key exchange (ECDHE_RSA with P-256), and a strong cipher (AES_128_GCM).
More than likely, Chrome will give you a warning if the server is using bad TLS.
1
u/______DEADPOOL______ Nov 25 '16
Wait so, TLS 1.2 is good I take it? What should I be looking out for?
→ More replies (4)
42
u/omepiet Nov 24 '16
Until recently I've been hearing stories of ad supported web sites switching to HTTPS and losing half the ad revenue in the process. Does anyone have any recent numbers on that to contribute? Since this is my livelyhood, this is the main thing holding me back.
39
u/pfg1 Nov 24 '16 edited Nov 24 '16
I think this depends mostly on your ad network and how hard they're pushing their advertising clients to use HTTPS. There's not much data to be found, but it's probably somewhere in the <10% range nowadays with AdSense, based on a few public reports out there.
I wonder if it's practical to run an A/B test on this, i.e. redirect only a fraction of your visitors to HTTPS and see what the effect on ad revenue is for that group.
8
u/doot Nov 24 '16
I run tech for a smallish DSP (~200k reqs/sec) and very, very few creatives have HTTPS support. This is mostly an advertiser issue -- there's no incentive to serve ads over HTTPS even though the rest of the supply chain supports it near-seamlessly.
5
u/dothedevilswork Nov 25 '16
Could you explain who (what?) a creative is in this context? And DSP, which I guess is not digital signal processing?
3
u/doot Nov 25 '16
The "creative" is the HTML code that wraps the image/video the advertiser wants displayed. A DSP is a "demand-side platform" - we basically buy "supply" from SSPs (supply-side platforms) on behalf of our clients (advertisers).
2
6
u/ayeshrajans Nov 24 '16
Most of my income comes from Adsense, and I recently moved all my sites to HTTPS /w LE, so this is coming from first hand experience.
Unless your ad code is poorly added, it should be using the protocol neutral URLs (//example.com/ad.js). Adsense had HTTPS support for a long time, so technically, you should not get mixed content warnings.
As soon as I added HTTPS, I noticed that the ad content were different. I was expecting to that my CPC would get lower, but for my surprise, it got better. I started to get a lot of traffic from Google search as well. One site was at Alexa rank 200-300K range, and in a few weeks, that site is now <60K.
0
Nov 24 '16
[deleted]
6
u/omepiet Nov 24 '16
I'll jump in good time. If the loss in revenue by now is indeed in the order of 10% or less, I will probably do it. I think I can make up for that by drawing and retaining more visitors with a faster HTTP/2 connection. And the more sites switch to HTTPS, the more ad networks will be forced to cater for it. Time to set up some A/B testing as u/pfg1 suggests.
121
u/SatoshisCat Nov 24 '16 edited Nov 24 '16
But post Snowden, and particularly after the result of the last election here in the US, it's clear that everything on the web should be encrypted by default.
Sigh... do you think it would be any better at all if any of the other presidential candidates would be elected?
Edit: those who downvote, please reply.
148
u/chronoBG Nov 24 '16
I'm just pissed that I can't read a simple programming article without it getting political literally one sentence in.
77
u/BasedGood Nov 24 '16
Everything is political. I'd rather have the political aspect be admitted than hidden.
→ More replies (5)66
u/Plasma_000 Nov 24 '16
Except it's ALWAYS US politics while internet security is a worldwide issue and arguably even worse in places like the UK
22
Nov 24 '16
If the writer lives in the US then it's going to be what is talked about.
→ More replies (1)24
u/Plasma_000 Nov 24 '16
My point is more that it's only the American users here who can't shut up about politics, even threads which have nothing to do with American politics someone finds the need to bring it up. Even threads about politics in other countries, America!
→ More replies (1)→ More replies (2)3
20
u/SatoshisCat Nov 24 '16
Yes, that's why I posted this. I hate it too.
EDIT: Encrypting everything shouldn't rely on a controversial president getting elected, it should be enforced nonetheless.
12
u/justjanne Nov 24 '16
It's like locking your door.
If you live in a good district in Scandinavia, you don't need to lock your door, and often don't, and nothing bad happens.
You don't start locking it "just because someone bad might come someday". You only start once that's happening.
6
Nov 24 '16
I do agree, but to be fair, website encryption is something that is very politicized. It's not like he's mentioning the election in an article about sorting algos.
→ More replies (1)2
u/afraca Nov 24 '16
Technology itself is something that's often developed in the context of something bigger, we want it to solve problems. Is something a significant problem, for who is this a problem etc? They all affect how we go towards solutions. (Ok, with academic research this is much less the case)
2
u/loup-vaillant Nov 24 '16
This is not really a programming article. And the issue at hand is fundamentally political: it affects pretty much all of us. Of course someone is going to mention the tip of that iceberg (namely politicians, election, or parties).
30
Nov 24 '16
Sigh... do you think it would be any better at all if any of the other presidential candidates would be elected?
I didn't downvote, but I will reply.
Trump doesn't understand the internet, like all the other candidates, but he also also has a broad disregard of rules written and unwritten, and a lack of understanding of what they are and what they are for.
If Trump doesn't prove worse for privacy it will only be because he doesn't find any value in violating it, it won't be because he has any real understanding of the consequences or because of respect for the ideals behind protecting them.
Now I won't get into an argument about how little everyone else values the ideas or understood the issue, it's clearly a problem for the entire political system, but most of the other candidates either respected the values or understood what they were for. Trump was the only one who did neither.
10
u/tequila13 Nov 24 '16
Let's not pretend Obama did anything good for online privacy. All the mass spying by the NSA was started under Obama and he did nothing to stop it. He even placed Tom Wheeler, a well know telecom lobbyist, to lead the FCC.
There was never a US president who understood the Internet.
19
u/blackenswans Nov 24 '16
He even placed Tom Wheeler, a well know telecom lobbyist, to lead the FCC
Tom Wheeler, although he was a former lobbyist, did his best to implement Net Neutrality and forced cable companies to open their boxes. He did everything that telecom companies hated. Criticizing President Obama for appointing Tom Wheeler is unfounded.
→ More replies (1)2
Nov 25 '16
All the mass spying by the NSA was started under Obama and he did nothing to stop it.
I won't pretend Obama did nothing to stop this, I'll even do you one better and say he oversaw expanding it, but it didn't start with him.
3
u/alex_w Nov 24 '16
broad disregard of rules written and unwritten
Luckily he was the only candidate to run that disregards rules right? :D
1
4
7
u/alex_w Nov 24 '16 edited Nov 24 '16
post Snowden
I hear that phrase a lot. Snowden didn't change shit and it's really annoying to hear that logic repeated over and over. Oh now that we know we're all being spied on I guess we should encrypt some stuff. God damn that thinking is dense.
Throwing the Trump gibe in on the top is a great new twist. You mean to say the maniacal psychopath most recently elected has funny hair this time. Well shit, I don't want him reading my email!
39
u/JW_00000 Nov 24 '16
Snowden didn't change shit [...] Oh now that we know we're all being spied on I guess we should encrypt some stuff.
You literally said what Snowden changed: we now know we're all being spied on, before that was just a guess.
21
u/alex_w Nov 24 '16
That's true. That was maybe coming from my perspective of being one of those tin foil hat wearing crackpots "pre-Snowden".
I suppose what I should have said is Snowden didn't change the reason that we should use/had been using encryption? Does that make more sense?
You don't encrypt your traffic because you know there's a MITM. You encrypt because you don't know that there isn't. The Snowden revelations didn't change who we don't know about, I think, we at least know there is at least one MITM. Even if you trusted that entity you still have the same unknown.
17
u/JW_00000 Nov 24 '16
You don't encrypt your traffic because you know there's a MITM. You encrypt because you don't know that there isn't.
I really like this way of phrasing it!
3
Nov 24 '16
You don't encrypt your traffic because you know there's a MITM. You encrypt because you don't know that there isn't.
Most people don't behave that way. I'm willing to bet you are also selective about that kind of reasoning. Do you carry an umbrella every day because you aren't sure it won't rain?
8
u/alex_w Nov 24 '16
I don't think the analogy fits. If you get wet in the rain you can dry off. If you leak sensitive information you can't unleak it. Chromium has highlighted that with a red squiggly because unleak isn't even a word.
→ More replies (3)2
1
Nov 25 '16
No, it wasn't a guess. The US government used to literally ban the export of software that used strong crypto; it was classed as a munition. If they weren't already eavesdropping way back in the early 90s, they wouldn't have cared.
Snowden exposed specifics, but nothing in there was fundamentally surprising to anyone who had been paying attention.
6
Nov 24 '16
Snowden didn't change shit and it's really annoying to hear that logic repeated over and over. Oh now that we know we're all being spied on I guess we should encrypt some stuff.
I hear that sentiment a lot. Your parents know you jack off, but getting caught still changes shit. It's dense to think that believing something true is no different than knowing is true because of new evidence.
1
u/alex_w Nov 24 '16 edited Nov 24 '16
It's dense to think that believing something true is no different than knowing is true because of new evidence.
I think there shouldn't be a difference in the particular situation of the question "Should we encrypt this traffic".
"(pre-Snowden) Should I encrypt my email? Na, it's only very likely that I'm being monitored by either the government, rouge wifi hotspot or my ISP, we don't know it's happening, yet."
Really?
I think the masturbation analogy would be: OK so now that my parents caught me beating it, I should maybe shut my door. There was always the likelihood that they'd see but we didn't know that they'd look.
→ More replies (3)3
u/Throwaway_bicycling Nov 24 '16
Throwing the Trump gibe in on the top is a great new twist.
Although I really don't know what he would say about it this week, Trump did previously make a huge deal about Apple's unwillingness to provide the government with a workaround for iPhone encryption.
5
u/xiongchiamiov Nov 24 '16
Yes, but the democrats have also generally been very "encryption is bad", "Snowden should go to jail for life", and "the nsa is making good decisions".
2
u/Throwaway_bicycling Nov 24 '16
Oh, there are no saints here, but Trump's comments were very direct and his relevant appointees appear to be solidly in the anti-encryption camp as far as I can tell.
3
u/oblio- Nov 24 '16
You mean to say the maniacal psychopath most recently elected has funny hair this time.
I'm not from the US, but at least from a distance Obama seemed normal. Bush was kind of normal, if a bit goofy, Clinton was also normal, Daddy Bush was a bit creepy and going back I think Nixon would be the most recent maniacal psychopath I can think of.
→ More replies (1)1
u/wmbenham Nov 24 '16
I took it as a reference to the email leaks throughout the election, not a knock on Trump
→ More replies (2)1
Nov 25 '16
Sigh... do you think it would be any better at all if any of the other presidential candidates would be elected?
Gary Johnson said that he would pardon Snowdon. So yes, I do think this particular candidate had a better spying policy (though not sure about his Net Neutrality position).
4
3
Nov 24 '16
Just watched a video, 200.000 every month for certificate and they are making it for free. WOW
4
u/ayeshrajans Nov 24 '16
Yes that is quite generous. Behind the scenes, they have to run verification servers, CT services, faster servers for CRL/OCSP, etc. That is tough and expensive work.
3
u/sebnukem Nov 25 '16 edited Nov 25 '16
Done! Web site secured with an "A" rating from the SSL report with RC4 disabled. That was fast and easy. Thanks, internet.
11
u/tambry Nov 24 '16
Yet Let's Encrypt doesn't provide wildcards nor verification through DNS records.
53
u/lbft Nov 24 '16
Yet Let's Encrypt doesn't provide ... verification through DNS records.
As of January 2016, Let's Encrypt supports DNS challenges.
12
u/justjanne Nov 24 '16
That's a dynamic DNS challenge, but it doesn't support static DNS auth.
(Where you put a public RSA key in the DNS, sign the certificate request with the private key, send that to LE, and they verify).
The challenges all still require changing your setup during the requesting, which makes it not ideal.
2
u/kyz Nov 25 '16
The challenges all still require changing your setup during the requesting, which makes it not ideal.
Actually, this is what makes it ideal. You have to prove you control a resource, at the time you want a new certificate issued for it.
DNS is not secure. Anyone with the right network access (anywhere between LE and your DNS nameservers) can spoof the response if they know when LE will be making a request to regarding your domain, and of course they'll put their own certificate on that response. Then they'll just ask LE to issue them a certificate and get one, without you even knowing. Game over.
To be secure, LE has to generate a unpredictable nonce, and communicate that to you in secret. Only then can you truly prove to LE that you control the domain you want a certificate for.
What you're thinking about -- putting security tokens in DNS -- is DANE, which is a replacement of the CA trust system altogether, but DANE requires a new anchor of trust, which is DNSSEC.
→ More replies (3)1
4
u/ryosen Nov 24 '16
They also require port 80 which isn't always an option and do not issue organization certs. Are they only good for the use of individual persons and hobby websites? If you are using this in commerce/business for an actual company, how did you approach this?
1
u/tambry Nov 24 '16
You probably can use them fine on bigger sites, as long as you don't mind the constant re-verification and there being no wildcards.
Do note that I have yet to use Let's Encrypt, but I'm very slowly working towards building some awesome websites and stuff, so I'll be able to see in a couple years how they fit for my purpose.
1
u/tialaramex Nov 25 '16
You've got three options to prove to them you control a FQDN (Let's Encrypt won't issue certificates for any other sort of name or address, only Fully Qualified Domain Names from the public Internet DNS). You can serve up the right answers on a particular magic HTTP URL on port 80; you can serve up the right magic X.509 certificate for a made-up SNI server name on a TLS connection on port 443; or you can add a magic DNS TXT record.
Organization validated certificates ("OV") are of very dubious value. IF your visitors examine the certificate by hand and IF they know what they're looking at, now they know your organisations' legal name and place of business. Otherwise it makes no difference that you got the extra details validated and include in the certificate for $$$ because nobody knows that, the web browser itself only looks at the domain name.
1
u/ryosen Nov 25 '16
You make an interesting point there re: OV certs. Most people aren't going to look beyond the green lock icon and, even if they look at the details, is the name of the organization going to be that much of a concern?
The periodic renewal isn't a concern as long as DNS TXT is supported. I'll have to take another look into them.
Thanks.
1
u/lucaspiller Nov 25 '16
Is it such a problem if they aren't targeting big business? If they can't afford to pay $50 for a wildcard SSL certificate they have bigger problems.
Having worked at these companies, I'll admit as a developer it would make my life a lot easier, to just throw up LetsEncrypt and be done with SSL.
1
u/ryosen Nov 25 '16
I'm a small business. Obviously the cost is not a concern for "big business" but it is for smaller ones. And where are you seeing OV wildcard certs for $50?
→ More replies (4)0
Nov 24 '16
[deleted]
3
0
Nov 24 '16
[deleted]
7
u/jmtd Nov 24 '16
The people you tell that to either cave and buy the wildcard certificates (like me), or they stick with HTTP anyway. And the latter doesn't just hurt them, it hurts all of us.
Well, some third group of people just use LE for all of their subdomains and cope with it.
3
u/CraigTorso Nov 24 '16
I wrote a shell script for a cron job that tries to get renewed certs for all my sub-domains every morning
It took me all of 4 minutes to write.
In the grand scheme of efforts involved in keeping a site up and the server healthy it's not exactly hugely costly
3
0
Nov 24 '16
[deleted]
1
u/ayeshrajans Nov 24 '16
I don't think AWS Cert manager has wildcard support. I personally don't like its email based verification because it is hard to automate it. I'm using their certs for CloudFront (w/o automation), so everything's good so far.
3
Nov 24 '16
Along these lines, I can highly recommend the Caddy web server. nginx used to be my default goto, but Caddy's configuration is a lot simpler and it does automatic TLS with Let's Encrypt.
4
u/sanity Nov 24 '16
You have an unalienable right to privacy
"Alien" is a latin word, not germanic, so it is "inalienable", not "unalienable".
</grammar level="nazi">
8
2
u/kieppie Nov 24 '16
That's all good & all, but it's usually the implementation that fails.
See the always excellent Peter Gutmann talk, Crypto won't save you you either
4
2
Nov 24 '16
without the SSL certificate that you must re-purchase every year in perpetuity – you can't encrypt anything
That's just plain incorrect.
1
u/tesfabpel Nov 24 '16
Is there a guide about setting HTTPS up just for one / some sites with Apache with multiple virtual hosts? Thanks
EDIT: of course the HTTPS vhost should redirect from HTTP to HTTPS, but other ghosts should be accessible only via HTTP...
4
u/pfg1 Nov 24 '16
certbotshould pretty much cover what you're describing. IIRC you get to pick the vhosts for which you want to enable SSL and HTTP to HTTPS redirection. Their site will give you the appropriate commands for installation and configuration once you pick your OS and web server software.2
u/Azuvector Nov 24 '16
That's about it. I set it up not long ago, myself. It sounds more complicated than it ends up being. Very easy.
1
1
Nov 24 '16
The one wrinkle with using certbot is that you must include exactly one domain per file. Which tends to be a good practice for a lot of things anyway, though not always.
1
u/judgej2 Nov 24 '16
If you are using the Plesk control panel, letsencrypt is just a couple of clicks away from each of your domains and subdomains. Once it is turned on, renewals are automatic.
1
u/emilvikstrom Nov 24 '16
Cpanel just released their AutoSSL feature with a possibility to plug in Lets Encrypt as a provider. I suspect that a lot of smaller wb hosts will start offering cheap or free certificates to their customers based on this feature.
1
u/MrNosco Nov 24 '16
I missed a few security lectures. Why is it a good idea to use HTTPS for my little blog thingy that I host on my own server?
3
u/tialaramex Nov 25 '16
HTTPS ensures that people reading the blog get what you wrote, not anything else, and that short of standing behind them looking over their shoulder nobody is sure exactly what it was they read (just it was on the blog).
If the blog has a thing where you log in to post stuff, HTTPS also protects your password from being seen by snoopers when you do that.
There are other advantages, but those are real and might well be enough given it's free and often pretty easy to do.
2
u/mcosta Nov 24 '16
With https you can use the faster http/2.
Internet as a whole, gains a little more security.
1
1
u/uzername0 Nov 24 '16
So where do I get the CA from? I don't see any link on the CA website...
The Get Started page states "you need to get a certificate (a type of file) from a Certificate Authority (CA). Let’s Encrypt is a CA."
I'm going in circles here...
5
Nov 24 '16
You can't get the certificate from their website manually, you need to use a program to communicate with their API. There are many choices for this, such as Certbot and dehydrated.
1
u/Austin4050 Nov 25 '16
In this generated SSL certificates are taking the hosting world by storm. It might seem like too little time, but I actually believe that in around 2 years at most, all the website will have working HTTPS and browsers will flag anything that doesn't.
2
Nov 25 '16
We're already on the way to flag everything that doesn't.
IIRC chrome will soon flag any websites that serve login forms over HTTP instead of HTTPS.
1
1
1
u/BlueWaterFangs Nov 25 '16
Quick question, if it's appropriate to ask...let's encrypt is awesome and I've got it set up with Django/Apache so that any HTTP requests to my domain are redirected to the HTTPS version of my Django app. The problem is, I'm trying to tie it to a Slack integration, and when my Slack request is sent over POST, it ends up hitting the insecure, default Apache landing page instead of my app. Does the redirect method support such integrations or is this all just an issue with how Slack makes the request?
1
1
u/asegura Nov 25 '16
How does this all apply to local networks and embedded devices with HTTP interfaces? I mean, there are devices and private services in LANs that are accessed by their IP address or that do not have public DNS domain names. I'm thinking of my router, an IP camera, or other devices or services that we might have for private use in an office, a lab or whatever.
I know very little about certificates and HTTPS. AFAIK, certificates are linked to a "domain". Right? Then what happens with devices accessed by their IP or maybe with a NetBIOS name? Can Let's Encrypt help here?
1
1
u/antoninj Nov 24 '16
Pretty much the only reason I switched to HTTPS on my site was Google and browsers starting to automatically block HTTP.
I'm all for privacy, content tampering etc. but HTTPS is still a bitch to set up especially if you have a good number of sites.
I have a site that doesn't require users to login, it's just a damned blog. And the big pushes have to do with content distribution. I rank pretty high on some keywords on Google. Hearing that Google might slam my website and make me lose my place lit a fire under my ass. Hearing that Chrome and Firefox are starting to outright block HTTP sites just threw oil on that fire.
7
0
Nov 24 '16
[deleted]
2
u/antoninj Nov 25 '16
Pretty much the only reason that the small guy can do HTTPS is Let's Encrypt and the fact that a ton of hosts provide Let's Encrypt out of the box. Still frustrating.
1
u/spainguy Nov 24 '16
On a broader note, does the "chilling effect" occur when people use encryption? Is there a better subreddit to ask on?
1
Nov 25 '16
Why would it increase chilling effects? Making it harder to snoop on people should reduce it.
1
u/spainguy Nov 25 '16
I was thinking of people using "non standard" encryption, making them stand out like a sore thumb to the "authorities" and putting them under scrutiny. Maybe I´m just suitably paranoid
1
Nov 25 '16
That's fair. Under HTTPS you can further encrypt without being so noticable. Right now it's actually worse with HTTP because encrypted traffic stands out like a sore thumb.
→ More replies (3)
1
u/Joe_Scotto Nov 24 '16 edited Nov 24 '16
Honestly, anyone who has access to HTTPS and doesn't use it should seriously reconsider their career path.
3
Nov 24 '16
We're on AWS and use Amazon's certificates. We have access to Let's Encrypt but we don't use it.
2
1
u/doot Nov 24 '16
The nice thing about their certs is the 1-year expiry over LE's 3 months (yes, I know that certbot is a thing and use both Amazon's offering and LE).
→ More replies (1)
1
u/dualaudi Nov 24 '16
Comodo offers free ssl via cpanel/whm. I just encrypted all my sites in whm.
1
u/ayeshrajans Nov 24 '16
Can you explain a bit about that? Is it a cPanel plugin thing (so the private key is generated on your server), or does Comodo generate it?
→ More replies (1)
-1
-8
u/Sjoerder Nov 24 '16
without HTTPS you have zero online privacy
While this is true and HTTPS is certainly a good thing, it does not really provide much privacy. Men in the middle can still see which pages you visit or even what you type in a form.
5
Nov 24 '16
What do you mean, they can see what I type in forms?
5
u/TheThiefMaster Nov 24 '16
They can't.
What they can see is exactly two things:
The hostname you're connecting to (assuming SNI is supported by the client, otherwise just the IP of the server)
The size of your request and the size of the response.
If the site has few enough pages it's possible to use the size or the request/response to infer what page of the site you have visited, but that's all.
0
Nov 24 '16
[deleted]
10
u/pfg1 Nov 24 '16 edited Nov 24 '16
It's certainly not bullshit - side-channels are a problem for many applications. The study mentioned in the linked article uses Google searches as an example. Google (and many other search engines) basically sends a request for each keystroke to get instant results. AIUI, by correlating the size of those requests (which grows with each additional letter you enter) with the size of the results for that search term, you can make a pretty good guess as to what the search term is.
A MitM definitely won't be able to get the plaintext for everything, but side-channels are more common than one might expect. Still, this is significantly (!) harder to do than just logging all HTTP plaintext traffic out there, especially at scale, so it's a very good thing in the context of mass surveillance.
→ More replies (2)→ More replies (1)0
u/loup-vaillant Nov 24 '16
Clueless downvoters, please heed /u/Sjoerder's words. Scrambling the content of a message hides neither its size, its destination, nor its provenance.
As far as privacy is concerned, this metadata is almost as important as the content itself.
-4
u/Dave3of5 Nov 24 '16
And yet his blog uses cloudflare SSL rather than let encrypt. Still SSL though !
8
u/terrarum Nov 24 '16
Cloudflare is a CDN and they provide SSL between their servers and the client for free. I think you can provide your own certificate to them? If so, you could possibly generate a LetsEncrypt cert and upload it to them, but I don't think there's much reason for the average person to do that.
Where LetsEncrypt comes in is when securing the connection between the origin server and Cloudflare. Cloudflare mirrors your site, so they need to connect to your server to get files they don't have. That connection can be open if you want, or you can install a cert on your origin server so that that connection is over https. LetsEncrypt is a really simple way to get a free cert for your origin server.
-1
u/Dave3of5 Nov 24 '16 edited Nov 24 '16
I know what cloudflare (I use it myself) is you don't have to use their SSL.
You don't need to use cloudflare SSL, in fact if you are using cloudflare and LetEncrypt on the origin server it would be slightly odd as you are adding extra latency to every call. I better way would be use the cloudflare DNS as is and have the origin server take care of the SSL.
Edit: Why do you think I'm dissing LetEncrypt?
3
u/pfg1 Nov 24 '16
If you want to use Cloudflare and support https, you're going to need to use their SSL. You can certainly provide your own certificate and private key, but they'll have access to that and terminate SSL on their servers. As for the communication between Cloudflare and your origin servers, you'd need a certificate for that too (either a regular trusted certificate, or one from their internal Origin CA).
If you're letting your "origin server take care of SSL", then that's not really an origin server, it's just your web server, and you're using Cloudflare as a DNS provider only. They won't do any WAF/DDoS filtering, etc. in that scenario. (Not that everyone necessarily wants or needs that! Just to define what people typically mean when they say "site X uses Cloudflare".)
→ More replies (8)→ More replies (2)1
u/terrarum Nov 24 '16
Ah, I'm sorry! Your comment made me think you thought it wasn't possible to use LetsEncrypt SSL and Cloudflare SSL at the same time, that's all. Just FYI I haven't been downvoting you, and I don't think you're dissing LetsEncrypt.
You're right about performance of course, but if you were paranoid about security I imagine you'd want to encrypt the connection between origin and Cloudflare. I didn't know you could just use your origin's SSL and ignore Cloudflare's service, but if that's a paid service as /u/disclosure5 says than that explains why I didn't know that :D
2
u/Dave3of5 Nov 24 '16
You can simply use cloudflare as a very fast DNS provider on the free plan in fact I'm doing that at the moment with my blog. Yes you should also encrypt between cloudflare and origin. But if you already have the SSL cert on your origin server their is little benefit to using cloudflares ssl.
I actually use the setup you provide to get SSL to my web app which is on heroku because then I can use the heroku provided SSL cert (which is free) but use the SSL cert provided by CloudFlare for my domain.
→ More replies (6)3
u/AntiProtonBoy Nov 24 '16
Still SSL though !
And that is what Let's Encrypt is ultimately advocating in the end. Making traffic more secure. Whether people use Let's Encrypt certs or some other service is immaterial, as long as people use them. Let's Encrypt simply offers an easier avenue for small site admins to use SSL.
-1
u/loup-vaillant Nov 24 '16 edited Nov 24 '16
This is all well and good, but HTTPS is not enough.
(Edit: reversing the order of paragraphs, most important first.)
Fourth, the website itself knows what you are doing —obviously. When that website is some giant corporate monster (search engine, webmail…), then it can know a lot about you, HTTPS be dammed. And of course, some of them can be subpoenaed.
Third, the website you are visiting often have trackers, such as the "like" button or Analytics; now Facebook and Google know exactly which page you are visiting, and may even know how you are visiting them.
Second, while the content of your communication is certainly hidden, the metadata isn't: you still reveal which website you are visiting, when you are visiting it, and how much you're downloading. It's even worse when part of the content comes from some content delivery network, ad network, and so on —gives the attacker even more information.
First, there is the good old man in the middle. Your communication got intercepted for some reason, and either the attacker produced a legitimate-looking certificate with a bogus or corrupt certificate authority, or you clicked through the warning without paying attention. Game over.
Want actual privacy? Start decentralising the internet again. This probably means replacing the web.
2
u/baryluk Nov 24 '16
I wish there would be industry standard support for SRP in the web browsers. No need for certificate, or MITM, but still secures your connection if you need to log in to the page. And that is often all you really need (email, admin sites, internal pages where you do not want to mess all the time with certificates). It still requires first time login to be done securely, but other than that it is pretty cool.
1
1
u/Klathmon Nov 24 '16
With HPKP the possibility MITM is removed after the first load. All clients must refuse to connect if the key changes at all.
→ More replies (5)
448
u/wavelen Nov 24 '16
Letsencrypt is awesome, using it for 10 months now. Everybody should really use this :)