serial-port-json-server icon indicating copy to clipboard operation
serial-port-json-server copied to clipboard

Unable to connect via SSL to server..

Open TheOncomingStorm opened this issue 8 years ago • 1 comments

It seems to start up fine but when I try to connect via wss://localhost:8990, I get the following

2016/04/24 15:38:00 server.go:2161: http: TLS handshake error from 192.168.1.16:51451: remote error: unknown certificate authority

I'm calling it as such and have checked permissions, etc.

serial-port-json-server -regex USB0 -scert /etc/local.d/sample-cert.pem -skey /etc/local.d/sample-key.pem -v

Any ideas?

TheOncomingStorm avatar Apr 24 '16 23:04 TheOncomingStorm

Try using the sample certs

# Run serial-port-json-server (ports 8989 & 8990)
GOPATH_SPJS="$GOPATH/src/github.com/chilipeppr/serial-port-json-server"
cd $GOPATH_SPJS
pwd

$GOPATH_SPJS/serial-port-json-server -regex "ttyAC|usb" -scert $GOPATH_SPJS/sample-cert.pem -skey $GOPATH_SPJS/sample-key.pem -v  # Start using included cert

AustinSaintAubin avatar Sep 17 '16 16:09 AustinSaintAubin