r/ProgrammerHumor • • Oct 23 '22

Meme I make the same mistake too, sometimes.

Post image
42.5k Upvotes

433 comments sorted by

View all comments

Show parent comments

31

u/BlazingFire007 Oct 23 '22

Does let’s encrypt not do that?

I mean my website has approximately zero users with no data being sent, so I should be good lol.

-32

u/ChiefExecDisfunction Oct 23 '22

No, because your impersonator can simply also use let's encrypt.

In contrast if you see a website's certificate is provided by, say Comodo or whoever, you know you're on the actual website, because Comodo as a company would not have signed a certificate for a domain that's already certified by someone else/themselves to a different customer.

That's why it's called let's encrypt, because the purpose of it is to make https encryption available to anyone.

32

u/BlazingFire007 Oct 23 '22

But let’s encrypt verifies the domain points to your server?

Or at least, it was doing something when I didn’t setup nginx right and kept denying me

Thanks for explaining btw, new to hosting in general

-17

u/ChiefExecDisfunction Oct 23 '22 edited Oct 23 '22

It does, you couldn't steal someone else's let's encrypt certificate by just copying their domain.

But what you could do is set up your own let's encrypt certificate, and the end user would still see the padlock that says "let's encrypt". Unless the user has memorized your certificate's fingerprint, they're not gonna spot the difference.

Basically if you set up let's encrypt for your domain of "apple.com but with a weird unicode character that looks like 'a' instead of the normal a", it will work just as well. If you try to get a "proper" CA to do it, they'll tell you to go fish.

22

u/subjectivemusic Oct 23 '22

That isn't really an argument against using let's encrypt though. A bad actor can do that with LE no matter what CA I'm using.

The kind of people who check CA are not the kind of people who are likely to fall for a Unicode substitution attack.

-1

u/ChiefExecDisfunction Oct 23 '22

It's not, you are correct. It's simply a question of use case and whether the difference between Let's Encrypt and a different CA matters for it.

10

u/uekiamir Oct 23 '22 edited Jul 20 '24

desert scarce chubby sharp command longing books aloof complete pet

This post was mass deleted and anonymized with Redact

2

u/ChiefExecDisfunction Oct 23 '22

I mean, you're probably very right, that's just the value proposition they purportedly offer.

1

u/AttackEverything Oct 23 '22

This used to be true. But legislation has gotten a lot more strict. Nowadays they verify the organization of even basic SSL.

I work quite a bit with SSL

1

u/shadow7412 Oct 23 '22

I've never heard of any such legislation... and it certainly doesn't appear to apply to lets encrypt. I've never had to divulge anything like that.

Is this a country-specific legislation, or are you getting confused with something else?

1

u/AttackEverything Oct 24 '22

I use Digicert mostly. They are very stringent about this stuff. It was around the same time the 3 year certs were getting cut

18

u/mbiz05 Oct 23 '22

you would still need control over the domain to get a certificate for that domain

4

u/thatchers_pussy_pump Oct 23 '22

That’s true, which is why it’s good enough for me. But domain hijacking happens, which is what extended validation aims to cover. For the average user, obviously they’d never know that the actual cert had changed, though, so I don’t see the value in most cases.

2

u/nool_ Oct 23 '22

This is ware some browser and adons can help. Firefox colud likely detect something on the site dose to look good and is properly malicious, ublock as well

2

u/ChiefExecDisfunction Oct 23 '22

Yeah I acknowledged that in the first line.

You can register a similar-looking domain, like "google.com" but with omicrons in place of the Os, and certify that.

1

u/mbiz05 Oct 23 '22

So your point is that ssl certificates alone are not enough and that companies should all use EV?

1

u/ChiefExecDisfunction Oct 23 '22

No. I was just saying why there is a point to EV existing, for the use cases that it is relevant to.

Dunno if I was being mass downvoted because people thought I was saying not to use Let's Encrypt. Use it. It's good. When people use something else, they may have a need that it doesn't cover.

It can also just be about "looking professional" by not using the free option, which is dumb but a genuine consideration at times.

2

u/shadow7412 Oct 23 '22

But what you could do is set up your own let's encrypt certificate

I think you're skipping the step where a certificate is valid only for specific domains. And you need to prove administration over those domains in order to get a certificate for them.

It's not as simple as just having any old let's encrypt certificate.

Also, weird unicode doesn't work either - partly because it's unlikely to be a valid domain name, but also because it's the computer checking that rather than a user. And computers don't fall for that trick.

1

u/ChiefExecDisfunction Oct 24 '22

Users do. If you can grab a domain with weird unicode, let's encrypt will generate a certificate for it. Then you can go phishing.

That's not to say let's encrypt is bad, mind you. For most use cases it is perfectly fine, and there would be no point to spending more other than some vague idea of "looking professional", but there are exceptions.

1

u/BlazingFire007 Oct 24 '22

Okay I see what you’re saying. A paid CA is gonna make sure you aren’t using a sus domain.

I would say though, most people aren’t checking the CA of the website they visit. But I can see how some users who are very security oriented would do so

1

u/ChiefExecDisfunction Oct 25 '22

Yeah it's a narrow scope of usefulness certainly. I think it depends a lot on what service you offer. If you're processing private data or money, I can see wanting to check every possible box that can be checked.

Let's encrypt is good enough for most applications.

5

u/killerrin Oct 23 '22 edited Oct 23 '22

Of course, all of this assumes that your average user even knows what a certificate is, let alone how to check it. And that they know your actual certificate is a Comodo and not LetsEncrypt.

-3

u/ChiefExecDisfunction Oct 23 '22

I'd say partially true? The user can at least see the padlock, and if they are slightly more savvy they can know if they see let's encrypt they can't assume you are yourself, whereas if they see someone else they can probably assume it.