Live data from Hacker News

Ask HN: How bad is it to use a self-signed SSL certificate?

news.ycombinator.com

91–100 of 118 posts

Re: Ask HN: How bad is it to use a self-signed SSL certificate?

#91
I posted this Ask HN earlier today. Thanks for the useful comments.

I have decided to not use a self signed cert.

Another question: any comments on CloudFlare's auto SSL support on paid plans? $20/month does not seem too much for CDN and SSL support.

Re: Ask HN: How bad is it to use a self-signed SSL certificate?

#92

Earlier quoted context omitted.

That's the whole point: There's no way to determine "unauthenticated" SSL versus MITM SSL. Once you have that "worked out" then you've solved the issue of self-signing in the first place.

I think I have a good idea to solve this. What if a system similar to HSTS was implemented? https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security important sites (banks) could send a "don't allow self signed certs" header. Browser UI could change to educate users not to type personal information into self signed sites.

... Then an attacker MITMs the bank with a self-signed cert, and strips the "don't allow self-signed certs" header. Such a header would be literally useless.

HSTS already allows self-signed certificates, if the certificated is validated out-of-band.

Re: Ask HN: How bad is it to use a self-signed SSL certificate?

#93
post #20

If you are careful when generating your certificate (that is, careful to generate a subject certificate, and not a CA certificate) and can reliably distribute your certificate to all clients you are interested in , then self-signed certificates are usually much better than the public CA system . But actually achieving the pre-distribution step is pretty hard, and basically impossible over the internet. You can achiev…

> If you are careful when generating your certificate (that is, careful to generate a subject certificate, and not a CA certificate) and can reliably distribute your certificate to all clients you are interested in, then self-signed certificates are usually much better than the public CA system. Indeed, and the blockchain (combined with a proxy like DNSChain), can be used to do this securely and for free at-scale. >…

Could whoever down-voted that please explain why you did so?

Re: Ask HN: How bad is it to use a self-signed SSL certificate?

#94

Earlier quoted context omitted.

I think I have a good idea to solve this. What if a system similar to HSTS was implemented? https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security important sites (banks) could send a "don't allow self signed certs" header. Browser UI could change to educate users not to type personal information into self signed sites.

... Then an attacker MITMs the bank with a self-signed cert, and strips the "don't allow self-signed certs" header. Such a header would be literally useless. HSTS already allows self-signed certificates, if the certificated is validated out-of-band.

But if a site is self signed the browser could show something like "This site is not authenticated, don't enter any personal info/passwords"

Re: Ask HN: How bad is it to use a self-signed SSL certificate?

#95

Earlier quoted context omitted.

Unauthenticated SSL does provide security against passive attackers , which is what mass surveillance in developed countries is. If the NSA ever insists on widespread MITM of connections, we have much bigger problems. I agree the UI needs to be properly worked out so that eg a bank can't be downgraded to an unauthenticated certificate.

I don't understand why they don't just use different colors for self-signed SSL connections. CA-signed: Green lockpad Self-signed: Yellow lockpad, with question mark superimposed over it Regular HTTP: Orange, no lockpad (insecure) Invalid or revoked cert: Red, "stay away" displayed within tags. The current UI that most browsers present implies that self-signed certificates are worse ("scarier") than regular HTTP, whi…

I think this is a good idea. It could be combined with a system similar to HSTS so banks could protect against MITM attacks.

Re: Ask HN: How bad is it to use a self-signed SSL certificate?

#96

Earlier quoted context omitted.

I think I have a good idea to solve this. What if a system similar to HSTS was implemented? https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security important sites (banks) could send a "don't allow self signed certs" header. Browser UI could change to educate users not to type personal information into self signed sites.

... Then an attacker MITMs the bank with a self-signed cert, and strips the "don't allow self-signed certs" header. Such a header would be literally useless. HSTS already allows self-signed certificates, if the certificated is validated out-of-band.

The idea behind HSTS is that the proper server commits to something for a significant period of time, making the later MITM fail.

In response to your previous post, the idea is that the user has to take some responsibility for their security (we can't stop them from entering their bank credentials into a friendly form on www.phish.com either), through a UI that makes it clear that the identity of the server is unauthenticated.

Re: Ask HN: How bad is it to use a self-signed SSL certificate?

#97

I posted this Ask HN earlier today. Thanks for the useful comments. I have decided to not use a self signed cert. Another question: any comments on CloudFlare's auto SSL support on paid plans? $20/month does not seem too much for CDN and SSL support.

EDIT: I did go with CloudFlare: works great, and my site is loading faster. Seems worth $20/month.

Re: Ask HN: How bad is it to use a self-signed SSL certificate?

#98
post #38

I'm not a tech savvy person (at least around here) but I used Gandi to purchase my certificate. I paid 12 bucks and it was extremely easy to implement it. To give you an idea, I didn't even know how to enable access to my site without entering "www." in front of my URL. But getting the certificate and implementing it was so easy that I was actually surprised once my SSL was active. I was expecting to run into a coupl…

I've got a couple at Gandi too, and I was pleased at how easy it was to set up. I used the free first year (included with a domain name purchase) but then went looking for the cheapest I could find. https://cheapsslsecurity.com/ sold me a simple domain validated cert for $19.96/5 years. That's the lowest I've seen but it looks like they raised their prices slightly since then.

Re: Ask HN: How bad is it to use a self-signed SSL certificate?

#99

Earlier quoted context omitted.

> If you are careful when generating your certificate (that is, careful to generate a subject certificate, and not a CA certificate) and can reliably distribute your certificate to all clients you are interested in, then self-signed certificates are usually much better than the public CA system. Indeed, and the blockchain (combined with a proxy like DNSChain), can be used to do this securely and for free at-scale. >…

Could whoever down-voted that please explain why you did so?

Wasn't me but I wonder about this: "Neither self-signed nor CA-signed certificates are securely authenticated...".

I'm no expert on CAs but saying their certs are not securely authenticated is worrying. Seems to defeat their purpose, no? Maybe expand on that point if you can as I don't understand how it can be true.

Re: Ask HN: How bad is it to use a self-signed SSL certificate?

#100

Earlier quoted context omitted.

... Then an attacker MITMs the bank with a self-signed cert, and strips the "don't allow self-signed certs" header. Such a header would be literally useless. HSTS already allows self-signed certificates, if the certificated is validated out-of-band.

But if a site is self signed the browser could show something like "This site is not authenticated, don't enter any personal info/passwords"

Right. It is questionable why self-signed certificates trigger scary warnings in browsers when totally unencrypted connections do not.

I think the whole UI aspect of web transport security needs re-thinking.

Post reply on HN