242 points · by technion · 11y ago · 100 comments
A small suggestion - instead of wget-ing the certificate chain from the page, I would use the cert-chain-resolver tool[0]. It's super simple, but highly effective bash script that wraps around OpenSSL / wget and does all this for you.
[0] https://letsencrypt.readthedocs.org/en/latest/using.html#whe...
Just a few details left before it's ready: https://github.com/mholt/caddy/issues/284
Am I missing something when all I really want are the free certs?
You also have to generate the private key in the first place, get the URL in the right field in the CSR, send the right file to the registrar (don't accidentally send them the private key!), convert between the dozens of file formats (.pem .crt .cer .key .der .p7b .p7c .pfx .p12 .jks), add the right intermediate certificates, put the file in the right place, make sensible cipher selections, set your file permissions right, make a secure backup of your key, check it works in several browsers and OSes - and repeat the whole process in a year or two when that certificate expires.
In the all-encrypted http2 world of the future, it would be better if the web server just took care of all that the first time it was started - just like a Linux server automatically generates a SSH private key at first boot.
The whole point here is that eventually the deployment tool can be integrated in existing server software, such that when you set up your server on your domain, requesting a certificate can be an automatic step that the sysadmin and web developer don't even have to think about.
This makes sure encryption will eventually be deployed by default everywhere, because it is literally easier than not to.
Nitpick: not for businesses. If you're asking for a certificate for anything that they may suspect has slight relation to any commercial activity, the request will be denied. It may be accepted by chance, but that's unreliable.
Companies who don't want to pay currently have only single option - WoSign, and they had started to give out free certificates relatively recently (I heard of them only this February)
Also, they absolutely must improve OSX support. One of the main objectives is to help people who are in the web field but wouldn't otherwise bother learning the intricacies of SSL configuration; these people by and large use Macs.
The official client can be ran in 'auth' mode, in which it will not write to your server configs. It can still automate the authentication process for you by looking at where the DocumentRoot is, and placing a file there. But this is also optional, since there is a manual authentication mode as well that just gives you a file, and you'll have to make it available under your domain somewhere and tell it when you've done so.
> Also, they absolutely must improve OSX support. One of the main objectives is to help people who are in the web field but wouldn't otherwise bother learning the intricacies of SSL configuration; these people by and large use Macs.
They also use Mac on their servers?
If you want it to only register and authenticate to fetch a cert but not install it, and you want it to just tell you what you need to do so that you can do it manually if you so wish, then that's possible.
LetsEncrypt will be good for all those sites we deploy with self-signed certs, but won't be replacing major sites any time soon.
Neither users nor browsers could tell whether a site is supposed to run a domain- or identification validated certificate. (Fun fact, HN uses a domain validated cert.) All you get is higher costs for some X.509 fields nobody ever looks at, and nobody would miss if an MITMing attacker replaced your ID validated cert with an domain validated one.
But should we? I've never looked at an SSL cert past seeing the green lock icon and "https". Maybe I'm an idiot but I just don't see the value in checking it every time I go to a site AND remembering if it was just domain or one with identity the last time I visited...
Yes, that setting up a respectable certificate must be easy for the masses in order for their to be mass adoption.
Not anywhere that I can find. Let's Encrypt is very important or full participation on the web isn't available to the poor. The internet should be fully usable by anybody with an IP. Adding the cost of a PKI cert is a barrier to entry.
> Startssl
...won't give me a certificate. (they have in the past, I don't know why they changed their mind)
This assumption that a single private business providing free certificates (but mind the fine print) is somehow an a solution to the SSL problem is poor engineering[1]. Unfortunately, this kind of attitude has become very common in recent years.
[1] You should always have a second source for anything critical. A design that is dependent on a single point of failure that you don't control is a design that is guaranteed to fail unpredictably.
- There are still two additional round trips on the first https connection vs http. That means there are still cases where http is faster than https, even when using spdy/http2.
- Also, the initial (before an HSTS header is seen) redirect from http -> https when typing in a domain name adds to the overall first load time.
Even after the performance and maintenance issues, we still have the local-development issue (developing on 127.0.0.1). You still need to own a domain name to get a cert from Let's Encrypt.
I'm happy Let's Encrypt is making certs easier so we can start focusing on the _next_ hurdles of massive TLS adoption. :)
A lot of developers, even today, come to me asking for a server configured to run a specific directory over SSL, with the rest of the site over plaintext.
The argument I am always given is that SSL will tax the CPU and the site won't be able to scale. I'm told it's a best practice and people will viciously defend "wasting" performance on parts of the site that don't need it.
It's not a common recommendation here, where people are arguably more aware of modern practices.
But amongst a lot of the population of entry level web developers I run into, it's a very common one, and it's also very wrong.
The "round trip" issue however that you point to, is totally valid, but also one that will not kill a site's ability to scale.
That certainly doesn't apply to everyone, a lot of people are using more CPU to generate their content than to serve it; in that case, maybe adding some extra CPU to encrypt isn't going to have a big effect.
Extra round trips can also affect the ability to scale: you'll need to be able to handle more connections open at a time, since each one will take longer to get the request to you. This is probably minor, unless you're on the edge of the number of connections your system can handle.
Not with HSTS preload.
You have to send the TLS client hello, wait for the TLS server hello back (1 Round trip), send the handshake finished, wait for the server handshake finished (2nd round trip), before sending application data. TLS 1.3 is supposed to help with that (although I haven't read the spec), but that's probably just bringing it down to one extra round trip in the common case. Add tcp (one round trip), and http (one round trip), and it's four round trips, twice as many as plain http.
If you are serving us users on broadband, and you only have servers on one side of the country, half of your users are going to see about 80 ms round trip, so https slows down your first page load by 160 ms, even before you worry about encryption. If you have users around the world, and servers in only one location, you're likely to see many users with 250ms or 300 ms, an very simple https page (short request, short response) is going to take a minimum of 1 second (2 round trips for tls, one for tcp, and one for http), and if your users are on congested mobile networks, ouch.
One thing I don't understand about the guarantees given by CAs is the one about the warranty, like the "$1,750,000 Warranty" from Comodo. How exactly can they provide that? Or is that some sort of MUST have if you want to partner with an insurance company?
The warranty is odd. Its required to provide a warranty in certain situations by the CA/B Forum (industry standards body). This is partially because some countries laws require they be provided for the class of products/services that SSL falls under, so requiring it from everyone sort of levels the playing field.
But the large CAs (Symantec, Comodo, etc) are big fans regardless. They can advertise this preposterous "warranty" which protects you, and usually the customer does not ask too much about it and just likes the sound of it or assumes it will cover them if they are hacked (which is not what its for). It actually just covers some very small situations where the CA mis-issues your certificate.
Some lawyers and experts at TrendMicro and Firefox found that due to how the terms are written there is basically no way the end-user would ever actually see that money. Those insurance warranties have never been used.
Thanks about the warranty clarification, so it only protects you if the /CA/ does something bad to you? In that case wouldn't it possible to sue the entity for, possibly, an even larger sum?
>Thanks about the warranty clarification, so it only protects you if the /CA/ does something bad to you? In that case wouldn't it possible to sue the entity for, possibly, an even larger sum?
Yes, I believe the damage has to be due to the CAs behaviors. The two major situations I can think of that would qualify would be:
1. The CA issues a certificate for your domain/company to someone who was not authorized. However I would think that cert would then have to be used in an actual attack so you could quantify your damages.
2. The CA is breached in some way that allowed your certificate to be compromised or allowed an attacker to create a fraudulent certificate for your domain/company.
That is a very good question about suing the CA for other damages. I am not aware if this has ever occurred but it certainly seems like it could.
Edit: ah ddworken clarified
Running letsencrypt-auto is no different than running one of the curl | sh installers; they serve the same purpose. Getting you up and running under the assumption that you may be missing bits and pieces.
If you don't trust the official letsencrypt client, you can use this script to get your free certs. It doesn't install things or ask for sudo access or your private keys or have to be run on your server (except for one challenge response one-liner you can inspect). I wrote it specifically so people who didn't trust the letsencrypt client could still get free certs.
The best part is it doesn't need to bootstrap and try to install a bunch of dependencies that I don't want or need, unlike the official client.
Thanks a lot.
1. breaches that qualify are often written off by the underwriter as "gross negligence" or other such behavior which basically allows them to nullify the contracts and pay nothing
2. situations where the breach could be covered by the terms of the insurance are incredibly rare. Most situations where SSL compromise is at risk would not be covered. The insurance only helps you if the CA causes you damages through their own actions. In one of the most famous cases, the breach of the CA DigiNotar, the underwriter said that DigiNotar misrepresented themselves and invalidated all their policies.
Also, an https cert has nothing to do with data breaches :)
It would definitively compromise the identity/trust part of it.
I wished they wouldn't do that at all. There's a world of hurt in trying to pretend to configure the cert on the current system. That's simply never going to work reliably. Let the individual distributions do their job by providing just the rest.
The fact that it's default is even more worrying.