Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.58 KB

MISC.md

File metadata and controls

40 lines (34 loc) · 1.58 KB

Misc (mostly for me right now)

Dev SSL

Note that you need to specify full xip host (multi-level wildcards are not allowed)

sudo openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout ~/dev/fam/bin/fam-dev.key -out ~/dev/fam/bin/fam-dev.crt -reqexts v3_req -extensions v3_ca
Generating a 4096 bit RSA private key
...............................................................................................................................++
......................................++
writing new private key to '/home/austin/dev/fam/bin/fam-dev.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:California
Locality Name (eg, city) []:San Francisco
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Clay.io LLC
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:192.168.0.109.xip.io
Email Address []:[email protected]

http://stackoverflow.com/questions/7580508/getting-chrome-to-accept-self-signed-localhost-certificate

For Android:

sudo openssl x509 -in ~/dev/fam/bin/fam-dev.crt -outform der -out ~/dev/fam/bin/fam-dev.der.crt

Copy fam.der.crt to your phone, settings -> security -> install from storage -> select key

USE_HTTPS=1 npm run dev