r/webdev • • Feb 25 '20

Safari will soon reject any HTTPS certificate valid for more than 13 months

[deleted] — view deleted post

472 Upvotes

172 comments sorted by

View all comments

13

u/bigmike1020 Feb 25 '20

Sigh. So much to maintenance-free apps.

46

u/madsci Feb 26 '20

Yeah, what the fuck are us embedded developers supposed to do? Send out mandatory firmware updates every year? I'm supporting devices that have to work offline - hosting their own content - so there's no guarantee of being able to download something automatically.

43

u/zenwa Feb 26 '20

I'm curious as to how this was working before, as far as I knew the max cert length was 3 years. If so you have to already have plans in place for cert updates, or are these systems only designed to last a couple of years?

18

u/Moxycycline Feb 26 '20

Easy. Don't use safari.

→ More replies (4)

8

u/rspeed cranky old guy who yells about SVG Feb 26 '20

Yeah, what the fuck are us embedded developers supposed to do?

Automate it. You should have done that anyway.

11

u/madsci Feb 26 '20

Automate what? It's a standalone device, with no guarantee of outside connectivity. The user needs to be able to connect over WiFi Direct, potentially far from any network infrastructure.

Right now it's not a huge deal and we're not even running HTTPS, but it's starting to be an issue because Chrome's locking down microphone access to only work on sites served via HTTPS is limiting the potential for some new features.

8

u/rspeed cranky old guy who yells about SVG Feb 26 '20

It's a self-signed certificate, right?

3

u/ric2b Feb 26 '20 edited Feb 26 '20

Isn't it a self signed certificate anyway?

Anyway, this is a really hard problem to solve from the browser without compromising security, I think your best bet is to make a custom application (could be electron) to connect to it.

2

u/hanibalhaywire88 Feb 26 '20

IOT will get to use http again?

2

u/OmgImAlexis Feb 25 '20

Huh?

-2

u/bigmike1020 Feb 25 '20

I'm just feeling frustrated. I just recently finished making several updates to 8-year-old code to support various changes in Chrome 80.

22

u/OmgImAlexis Feb 25 '20

You’re honestly expecting to never have to update an app?

21

u/JuanPablo2016 Feb 26 '20 edited Feb 26 '20

Embedded system often have stuff that is designed for updates on release and never again. The reality is that you have to assume the end user will not or cannot have the systems in place for ensuring stuff is updated. A couple of years ago I had to create a web interface for an embedded system that had 64k of capacity for all the interface content and is deployed on cancer detection equipment used around the World. Tell me how that's going to get new certs every X months.

20

u/zenwa Feb 26 '20

Tell me how that's going to get new certs every X months

I mean, without this change you'd still have to update your cert eventually anyway, the time frame has just been shortened.

I'm curious as to how that was ever going to work, isn't the max length of a certificate you can buy like 3 years?

Also, are people really running safari on cancer detection equipment AND updating the browser? That seems like the sort of thing there would be one single specialized embedded version of on all machines.

3

u/hanibalhaywire88 Feb 26 '20

Kills the ability to embed a PWA for your embedded device.

2

u/JuanPablo2016 Feb 26 '20 edited Feb 26 '20

You can create self signed certs.

How do you enforce people only accessing the device using browser X or y ?

8

u/[deleted] Feb 26 '20 edited Jul 22 '20

To anyone about to downvote him: Stop being so naiive. You create a self signed cert on install and leave an option for the user to replace it with one from their own CA in their own domain. It's more secure since you as the developer will never have the cert and you don't have to maintain it. Only on the web is it a problem to use a self signed cert. Some of us build server applications and it doesn't matter there.

12

u/zenwa Feb 26 '20 edited Feb 26 '20

Honestly, the fact that you're using a self signed cert in a production environment is an order of magnitude more worrying than the fact that they'll be rejected by Safari in the near future.

How do you enforce people only accessing the device using browser X or y ?

Browser detection is pretty simple.

0

u/JuanPablo2016 Feb 26 '20

In your opinion. You literally have next to no info about the device and yet you are saying you know better than the multinational company behind it, that specialises in cancer related equipment.

12

u/zenwa Feb 26 '20

You're right, but I don't need to know anything about cancer to know that in web development, using a self signed cert in production is a big no no.

If you'd like to educate me on why that's a good idea I'd be very intrigued.

→ More replies
→ More replies (5)
→ More replies (1)

4

u/OmgImAlexis Feb 26 '20

So you’re also telling me you aren’t going to be updating that embedded system when someone finds a security issue?

And if it’s using a cert it’ll need to be updated at some point or another. Not really sure how this changes much apart from it needing to happen a tad more often. 💁‍♀️

1

u/JuanPablo2016 Feb 26 '20

There are no security issues. It's literally a wired connection with no external network access. You can only read data from it.

→ More replies (15)
→ More replies (3)

0

u/[deleted] Feb 26 '20

[deleted] — view deleted comment

2

u/rspeed cranky old guy who yells about SVG Feb 26 '20

Existing certs will still be accepted.