Fork me on GitHub
#off-topic
<
2017-10-22
>
qqq16:10:49

@pesterhazy: let's continue my http-server question here, as it's no longer clojure

qqq16:10:23

http-server -ssl --cert /.localhost-ssl/cert.pem --key /.localhost-ssl/key.pem <-- command I'm running

pesterhazy16:10:25

you also need to specify -p 8443

pesterhazy16:10:34

and correctly spell --ssl

pesterhazy16:10:48

then try curl -i

qqq16:10:31

okay, it 'works'', sora, except Chrome is claiming not secure

pesterhazy16:10:44

does it work in curl?

qqq16:10:46

Yeah, I get a lot of css / html

qqq16:10:04

it looks correct, there is a href for blah.txt, which is the one file in the http-server directory

qqq16:10:32

lol, 'fun', will go read that now 🙂

pesterhazy16:10:47

there's a bunch of guides out there if you search for "chrome macos subjectaltname"

pesterhazy16:10:02

good news is it's a one time thing

qqq16:10:06

@pesterhazy: thanks for your help; I suspect this saved me hours of pain / bashing head against wall

pesterhazy16:10:28

np, i had the same problem a few months ago

pesterhazy16:10:59

usually you don't need ssl for localhost, but for some use cases you do

pesterhazy16:10:13

e.g. building your own bookmarklets

qqq16:10:06

I'm doing localhost -> amazoncognito -> lolcalhost, w/ amazon tokens ; I'm 99% sure cognito demands https

pesterhazy16:10:27

yup oauth is similar