chilipeppr / serial-port-json-server

Serial Port JSON Server is a websocket server for your serial devices. It compiles to a binary for Windows, Mac, Linux, Raspberry Pi, or BeagleBone Black that lets you communicate with your serial port from a web application. This enables web apps to be written that can communicate with your local serial device such as an Arduino, CNC controller, or any device that communicates over the serial port.
http://chilipeppr.com
GNU General Public License v2.0
323 stars 101 forks source link

Unable to connect via SSL to server.. #10

Open TheOncomingStorm opened 8 years ago

TheOncomingStorm commented 8 years ago

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?

AustinSaintAubin commented 7 years ago

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