Websocket security #7596
Replies: 1 comment
-
Posted at 2018-11-08 by @allObjects ...there is a bit more needed to understand which part of it you need help with... such as: what did you and could do successfully, what avenues you went down to - literally - go down, and where and with what are you stuck right now /: Posted at 2018-11-08 by MaksR I try so:
how to use WSS correctly?
??? Posted at 2018-11-08 by Wilberforce What board are you on? Posted at 2018-11-09 by Robin Thr 2018.11.08 @wilberforce, I'm going to side with you on this, start with the board type. But, isn't it as simple as in Line 1 setup?
When I played with Espruino Original, Pico and Wifi, for hardware SPI, wasn't the SPI requirement that all pins had to stay with the same SPI designation? and, when one checks the board pinouts, @gfwilliams did a fantastic job on establishing a firm naming convention, and keeping it consistent. e.g. A pins with SPIn for instance Unless the non-Espruino boards have a different labeling requirement, seems to be a good place to start. @maksr please post the board type and verify with the online docs about SPI pin designation. If that doesn't solve the issue would you please post some output as in the paths tried, as @allObjects pointed out. It is extremely difficult for those willing to expend their valuable time to assist without some basic foundation to work with. > 'help with the Websocket security client example' Were you working from an online snippet perhaps and would you please post that link? > 'how to use WSS correctly?' Are you asking if this is the correct syntax to set up a Posted at 2018-11-09 by MaksR Board: STM32F4DISCOVERY + W5500 NET may be incorrect syntax or something? Posted at 2018-11-09 by @gfwilliams Ok, I think the issue is that by default the WebSocket example just uses the So ideally changing the library to do this:
would probably work. Unfortunately the way it's done (not actually exporting Posted at 2018-11-09 by MaksR Thank you! Posted at 2018-11-11 by MaksR Handshake from Wireshark:
Tomcat 9.13 - Handshake Failure:
Maybe the problem is due to version: TLS 1.0 (0x0301)? Posted at 2018-11-12 by @gfwilliams Maybe you could try providing pre-made certs when you connect? http://www.espruino.com/Reference#l_tls_connect Posted at 2018-11-12 by Wilberforce Referring to #7 I tried this on the Linux build and there was no -x07 error Posted at 2018-11-12 by MaksR in module wss.js:
Espruino code:
93.183.80.194 - real ip with Tomcat 9.0.13 and websocket (wss://93.183.80.194:8443/time/ws) + server.crt sign ca Espruino error: mbedtls_ssl_handshake returned -0x7780. Сan tomcat not like Cipher Suite: TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256 ? But Espruino is connected to the node.js server! (certificates are the same) , node.js client and browser connects to Tomcat. Attachments: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-11-08 by MaksR
Hi! help with the Websocket security client example.
Beta Was this translation helpful? Give feedback.
All reactions