-
Handshake from Wireshark:
Espruino - Client Hello:TLSv1.2 Record Layer: Handshake Protocol: Client Hello Content Type: Handshake (22) Version: TLS 1.0 (0x0301) Length: 49 Handshake Protocol: Client Hello Handshake Type: Client Hello (1) Length: 45 Version: TLS 1.2 (0x0303) Random: 30de5c92dbfd4ddcb00fa82fed023683b8b899788e0e189e... GMT Unix Time: Dec 25, 1995 11:10:58.000000000 RTZ 2 (зима) Random Bytes: dbfd4ddcb00fa82fed023683b8b899788e0e189e3b5f5a72... Session ID Length: 0 Cipher Suites Length: 6 Cipher Suites (3 suites) Cipher Suite: TLS_RSA_WITH_AES_256_CBC_SHA256 (0x003d) Cipher Suite: TLS_RSA_WITH_AES_128_CBC_SHA256 (0x003c) Cipher Suite: TLS_EMPTY_RENEGOTIATION_INFO_SCSV (0x00ff) Compression Methods Length: 1 Compression Methods (1 method) Compression Method: null (0)
Tomcat 9.13 - Handshake Failure:
TLSv1.2 Record Layer: Alert (Level: Fatal, Description: Handshake Failure) Content Type: Alert (21) Version: TLS 1.2 (0x0303) Length: 2 Alert Message Level: Fatal (2) Description: Handshake Failure (40)
Maybe the problem is due to version: TLS 1.0 (0x0301)?
or Random (GMT Unix Time)?
or Cipher Suites ? -
-
Board: STM32F4DISCOVERY + W5500 NET
Library "crypto " added to firmware (mbedtls).
SPI interface works!
Using WS and 80 port I get a response from echo.websocket.org "hello world"
Also I tried to connect to https server. It works!
butws = new WebSocket('wss://echo.websocket.org', { port: 443 });
does not work!
may be incorrect syntax or something?
-
I try so:
SPI3.setup({ mosi:B5, miso:C11, sck:C10 }); var eth = require("WIZnet").connect(SPI3, D0); eth.setIP({ip : "192.168.1.13",subnet : "255.255.255.0",gateway:"192.168.1.1",dns:"192.168.1.1"}); var WebSocket = require("ws"); const ws = new WebSocket('echo.websocket.org', { port: 80 }); ws.on('open', function() { console.log('opened'); ws.send("hello world"); }); ws.on('message', function(message) { console.log('received: ', message); });
how to use WSS correctly?
ws = new WebSocket('wss://echo.websocket.org', { port: 443 });
???
-
-
-
-
I write from memory - a possible error in the syntax:
//wiegand.c
/*JSON{
"type" : "staticmethod",
"class" : "wiegand",
"name" : "ReadD0",
"generate" : "jswrap_ReadD0"
} */void jswrap_ReadD0{
/ /do
}setWatch(function(e) { wiegand.ReadD0; }, E2, { repeat:true, edge:'falling', irq : true});
setWatch(wiegand.ReadD0, E2, { repeat:true, edge:'falling', irq : true});Espruino write:".. not native function .."
please tell me the reason? -
-
-
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.
Wireshark shows that the stage of certificate exchange is not coming !? (I'm not sure).
Tomcat responds with Handshake Failure.
С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.