Fork me on GitHub
#figwheel-main
<
2020-06-11
>
bhauman18:06:20

I’ve created a library/tool to make creation of SSL certificates and jks files to support HTTPS better

bhauman18:06:23

The idea is to eventually get to the point that you can just enable ssl in a figwheel build and not worry about the config

bhauman18:06:16

I’ve only tried it on my mac it would be cool to have folks give it a whirl on their own machine https://github.com/bhauman/certifiable

bhauman18:06:38

I also would love some commits that automate certificate trust on your favorite OS

dominicm18:06:14

That's terrifying

dominicm18:06:05

Please be really cautious about the security of the root CA. That could be used to pwn you.

bhauman18:06:23

@dominicm I’m following an established pattern for dev certificate generation and its only supposed to be for localhost etc

bhauman18:06:05

your only accepting a root cert that was generated on your machine

bhauman18:06:54

and yes it should only be used for local development 🙂

dominicm18:06:50

2 problems: 1. I think that pattern is really dangerous, I think it's a "pragmatic solution" rather than a safe solution. People aren't talking about that. 2. The root certificate ends up installed on the developer's machine, that isn't restricted to localhost in any way, so if an attacker can get a hold of that root certificate, I can start intercepting your traffic.

bhauman19:06:45

yes restricting it certainly makes sense

dominicm19:06:23

I don't think that's possible for root CAs.

bhauman19:06:56

how do you go about it?

dominicm19:06:13

How do I go about what?

bhauman19:06:19

when you need a local dev? just a self-signed cert?

dominicm19:06:37

I don't use ssl, it doesn't provide security for localhost