News for hackers. Stuff that matters.
Re:WordPress.com turns on HTTPS encryption for all websites by simonw on Friday April 08, 2016 @04:21PM (#11457601)
WordPress.com illustrates an interesting challenge in supporting SSL if you allow people to use subdomains on your service:

https://bestcrabrestaurantsinportland.wordpress.com/ works fine

https://www.bestcrabrestaurantsinportland.wordpress.com/ displays a certificate warning

Unfortunately I don't think there's a good solution for this. Humans are gonna www- things.

Re:WordPress.com turns on HTTPS encryption for all websites by JoshTriplett on Friday April 08, 2016 @05:17PM (#11458060)
> Humans are gonna www- things.

The same humans who incorrectly add "www." when not told to are also unlikely to add "https://". So have the www. version redirect to the correct URL with HTTPS.

For that matter, since certificates with Let's Encrypt support arbitrarily many SubjectAltName (SAN) values, you can include the www variant in the certificate, so that your redirect can use HTTPS and HSTS.

Re:WordPress.com turns on HTTPS encryption for all websites by XMPPwocky on Friday April 08, 2016 @07:33PM (#11458984)
But then, if I'm MITMing you, I can just silently keep you on www, without SSL, without caring about HSTS or anything.
Re:WordPress.com turns on HTTPS encryption for all websites by iancarroll on Friday April 08, 2016 @08:01PM (#11459100)
If WordPress enables (preloaded) HSTS, that would not matter.
Re:WordPress.com turns on HTTPS encryption for all websites by barsxl on Saturday April 09, 2016 @03:34AM (#11460372)
This happens with the https:// vary rarely. The http:// case happens more often. This is one of the complications in adding HSTS headers with includeSubDomains. Right now, the http:// version works as expected, but if we added HSTS with includeSubDomains for "wordpress.com" those URLs would stop working and generate a SSL error.

Somewhat related - if you have a mapped/custom domain on WordPress.com, even though we are strongly no-www[0] the "www" will work over HTTPS, assuming that DNS for the sub domain points to our servers[1]

0. http://no-www.org/ 1. https://www.1912.me/

Re:WordPress.com turns on HTTPS encryption for all websites by icebraining on Friday April 08, 2016 @05:20PM (#11458093)
I never understood why you can't get a wildcard cert for * . * .example.com. Then again, the whole concept of wildcart certs being priced differently is pure price segmentation, so that's to be expected.
Re:WordPress.com turns on HTTPS encryption for all websites by deathanatos on Friday April 08, 2016 @09:23PM (#11459406)
I've always figured it was just unwillingness on people to implement the work required for that to happen. Inertia.

The "wildcard" certs' relevant RFCs are worded such that * . * .example.com isn't valid; one of the relevant RFCs restricts you to only 1 star in the leftmost component, so two stars is invalid.

There's a thing that you can put into a cert called "name constraints" that does have a syntax that allows you to say ".example.com", which allows things such as "foo.bar.example.com". It's valid on CA certs (it's oddly only valid on CA certs), which means that you could get a cert that was a CA cert for just your domain, and all subdomains. It'd be incredibly useful.

But no CA that I know of will issue them. Of the major browsers, only Firefox supports them. The whole Lets Encrypt thing makes it mostly a moot point though, since with Lets Encrypt you'd just obtain a non-CA cert for each specific domain.

(It'd still be useful, I think, to see it implemented, if only for restricting CAs to certain public suffixes, when/if that's appropriate.)

Re:WordPress.com turns on HTTPS encryption for all websites by biot on Friday April 08, 2016 @07:03PM (#11458803)
It's so people can't use one wildcard cert to have facebook.com.example.com and google.com.example.com, potentially tricking users.
Re:WordPress.com turns on HTTPS encryption for all websites by icebraining on Friday April 08, 2016 @07:26PM (#11458946)
I don't think that's a valid reason, because you can get a cert for * .com.example.com, hence you can have those domains.
Re:WordPress.com turns on HTTPS encryption for all websites by biot on Saturday April 09, 2016 @03:34AM (#11460373)
Very good point.
Re:WordPress.com turns on HTTPS encryption for all websites by enraged_camel on Friday April 08, 2016 @05:28PM (#11458170)
It's not price segmentation. You can encrypt X hosts with a wildcard cert, and X can be any number. So you basically buy encryption at a flat price, which can save you a LOT of money.
Re:WordPress.com turns on HTTPS encryption for all websites by icebraining on Friday April 08, 2016 @05:51PM (#11458364)
Fair enough; maybe the term isn't correct. My point is that a wildcart cert is technically no different than a 'regular' cert, and the CA incurs in no extra cost, unlike with EV certs. The price difference is purely based on the fact that buyers who need wildcart certs tend to have larger budgets.
Re:WordPress.com turns on HTTPS encryption for all websites by zanny on Friday April 08, 2016 @06:05PM (#11458454)
And then letsencrypt gives out free certs, but not wildcards, though their argument is more for securities sake.
Re:WordPress.com turns on HTTPS encryption for all websites by hayksaakian on Friday April 08, 2016 @04:29PM (#11457662)
can you get a second certificate? i'm not sure how the technology works, but since let's encrypt is free i think it could also be automated to solve this problem
Re:WordPress.com turns on HTTPS encryption for all websites by jquast on Friday April 08, 2016 @07:04PM (#11458808)
There is a feature in X.509 for this, "Subject Alternative Names" to cover these alternate hostnames.

https://en.wikipedia.org/wiki/SubjectAltName http://wiki.cacert.org/FAQ/subjectAltName https://www.openssl.org/docs/manmaster/apps/x509v3_config.ht...

Certificate authorities charge extra for it, of course they do. DigiCert brands this as "Multi-Domain (SAN) Certificate" and charges nearly $300/yr, while my choice provider, sslmate.com offers the same for $25/yr.

And now $0 certificates with Let's Encrypt, I'm sad to see sslmate.com's business hurt, as they are the first to provide no-bullshit sysadmin-focused CLI tools to get the job done. I'm very wishful to see DigiCert.com and others like it go bankrupt, however.

I don't see any reason why Honest Achmed's request to be a CA was denied by Mozilla, https://bugzilla.mozilla.org/show_bug.cgi?id=647959 at least he is honest about his business model.

Re:WordPress.com turns on HTTPS encryption for all websites by dsr_ on Friday April 08, 2016 @04:57PM (#11457877)
LE allows you to put many names in the same cert. Adding www is extremely simple.