News for hackers. Stuff that matters.
Re:Unity Editor for Linux by Liquid_Fire on Friday May 31, 2019 @06:57AM (#20059783)
The Battle.net launcher uses Qt, and they already have a macOS version of it, so it shouldn't be too difficult to port.

Edit: That said, it's not like the lack of Unity Editor on Linux was stopping them from having a Linux version of Hearthstone. It has been possible to target Linux for years.

Re:Unity Editor for Linux by vbezhenar on Friday May 31, 2019 @08:51AM (#20060382)
One simple example: battle.net installs its own root certificate to the OS trust store. How do you do that for Linux? There are plenty of distributions with different rules. That would be some work.
Re:Unity Editor for Linux by justinclift on Friday May 31, 2019 @09:53AM (#20060849)
> How do you do that for Linux?

Varies by distro. For example, on my CentOS 7 desktop just now:

  $ cat /etc/pki/ca-trust/source/README
  ...
  QUICK HELP: To add a certificate in the simple PEM or DER
     file formats to the list of CAs trusted on the system:

     Copy it to the /etc/pki/ca-trust/source/anchors/
     subdirectory, and run the update-ca-trust command.
That README is part of the "ca-certificates" package.

As seba_dos1 points out though... why would doing this be needed for a single application?

It should be possible to point the cert validation code at a non-system-wide CA chain.

Re:Unity Editor for Linux by seba_dos1 on Friday May 31, 2019 @09:04AM (#20060466)
Why would it do that in the first place?
Re:Unity Editor for Linux by vbezhenar on Friday May 31, 2019 @03:06PM (#20064004)
I think that they're running webserver on localhost and they are connecting to it from their website opened in browser, probably for some integration.
Re:Unity Editor for Linux by jandrese on Friday May 31, 2019 @04:03PM (#20064433)
How is that going to work when most of the users are behind NAT/Firewalls? That's a connection model that just doesn't work well on the modern Internet.

I'm also kind of baffled by the need to install a Blizzard root cert in the cert store. That's normally only necessary for people who are too cheap to get their certs signed (Blizzard makes enough money to do this) or who want to MitM encrypted traffic from your host.

Re:Unity Editor for Linux by vbezhenar on Friday May 31, 2019 @04:16PM (#20064543)
You're opening their website. JavaScript on their website connects to https://localhost:12345 and uses that connection to interact with battle.net software that runs on your PC. NAT/Firewall is not an issue. But that client software have to present valid certificate for that localhost website. To do so, they generate that self-signed certificate at installation time and mark is as trusted, so browsers will accept it. There's no other way to do that, really (well, there's a way actually, but it requires to sign some very non-standard agreements with certificate authorities, I know that Plex does that). Blizzard does not use that certificate to MitM your connection, because they don't send it back, it's generated, stored and used locally.

I don't like this practice too and I would opt-out of that "feature" having the choice. I just used to develop similar software, so I understand why they did that.

Re:Unity Editor for Linux by captn3m0 on Friday May 31, 2019 @06:06PM (#20065451)
Re:Unity Editor for Linux by jandrese on Friday May 31, 2019 @04:27PM (#20064664)
Do you actually need a root cert for this? Can't you just install the server's self-signed cert?
Re:Unity Editor for Linux by vbezhenar on Friday May 31, 2019 @04:55PM (#20064889)
I think it's actually self-signed certificate for domain (localbattle.net) which resolves to 127.0.0.1, not CA one, sorry for misinformation.
Re:Unity Editor for Linux by jandrese on Friday May 31, 2019 @05:05PM (#20064955)
That's much less troubling. It's much harder to engage in shenanigans in that case.
Re:Unity Editor for Linux by xfer on Friday May 31, 2019 @08:47PM (#20066366)
What's the point of using tls on localhost?
Re:Unity Editor for Linux by vbezhenar on Saturday June 01, 2019 @06:56AM (#20068575)
Browsers require it. If you're establishing connection from JavaScript that was loaded on HTTPS website, you can't establish connection to HTTP.

I've heard recently about some movement to allow HTTP connections to localhost, but I did not investigate that thoroughly. TLS should not be needed for localhost, that's true.

Re:Unity Editor for Linux by tumetab1 on Friday May 31, 2019 @10:26AM (#20061173)
IMHO the only correct solution is stop doing that.
Re:Unity Editor for Linux by rasjani on Friday May 31, 2019 @10:02AM (#20060933)
Problem so far has been that unity dev tools where windows only while Linux would still be a target.
Re:Unity Editor for Linux by pjmlp on Saturday June 01, 2019 @08:12AM (#20068797)
And macOS.