Question:
I'm trying to make a secure connection between a browser and an SSL server, using websocket.
When I connect using the method AcceptNextConnection I get Success but the browser is automatically disconnected after accept, instead of allowing use the socket
I got this from browser (Chorme 47.0.2526.73)
"WebSocket connection to 'wss: //192.168.0.26: 4502 /' failed: WebSocket handshake opening was canceled"
And this from Chilkat log (last release)
ChilkatLog:
AcceptNextConnection(7020ms):
DllDate: Oct 29 2015
ChilkatVersion: 9.5.0.54
UnlockPrefix: -
Username: -
Architecture: Little Endian; 32-bit
Language: ActiveX
VerboseLogging: 1
objectId: 1
listenPort: 4502
acceptNextConnectionHB(7020ms):
maxWaitMs: 0
m_idleTimeoutMs: 10000
scAcceptConnection(7020ms):
Clearing TLS client certificates.
acceptNextConnection(6974ms):
Setting SO_SNDBUF size
sendBufSize: 262144
Setting SO_RCVBUF size
recvBufSize: 4194304
--acceptNextConnection
serverHandshake(46ms):
serverHandshake2(46ms):
svrReadClientHello:
readHandshakeMessages:
processHandshakeRecord:
processHandshakeMessage:
processClientHello:
clientHelloExtensionsLen: 76
HelloExtension: renegotiation_info
HelloExtensionLen: 1
HelloExtension: 23
HelloExtensionLen: 0
HelloExtension: SessionTicket
HelloExtensionLen: 0
HelloExtension: signature_algorithms
HelloExtensionLen: 22
HelloExtension: status_request
HelloExtensionLen: 5
HelloExtension: next_protocol_negotiation
HelloExtensionLen: 0
HelloExtension: 18
HelloExtensionLen: 0
HelloExtension: 30032
HelloExtensionLen: 0
HelloExtension: ec_point_formats
HelloExtensionLen: 2
HelloExtension: elliptic_curves
HelloExtensionLen: 6
--processClientHello
--processHandshakeMessage
--processHandshakeRecord
--readHandshakeMessages
--svrReadClientHello
buildCertificatesMessage:
numCerts: 3
--buildCertificatesMessage
svrProcessClientKeyExchange(31ms):
modulus_bitlen: 2048
bigEndian: 1
padding: PKCS 1.5
sizeAfterPkcs15_decode: 48
--svrProcessClientKeyExchange
--serverHandshake2
--serverHandshake
--scAcceptConnection
--acceptNextConnectionHB
Success.
--AcceptNextConnection
socketOptions:
SO_SNDBUF: 262144
SO_RCVBUF: 4194304
TCP_NODELAY: 0
SO_KEEPALIVE: 0
--socketOptions
--ChilkatLog
If I try to connect from the connect method of the library it works correctly. But I need to use WebSocket for my project and I do not understand what is happening.
I greatly appreciate any help.
Cheers
Websockets is a protocol not implemented yet by Chilkat. See https://tools.ietf.org/html/rfc6455