Hi Lukas,
oh dear...indeed, after playing too long around with the code, i forget what was mentioned initially about importing the support for Curve25519 and Ed25519.
And btw. thanks a lot for the enlightening comment you gave!! :-)
Now the response looks much better - But still with some trouble:
2023-03-29 21:31:14.725 DEBUG WebSocketClient(1)[5] TLS: HandshakeMessage:Certificate was received.
2023-03-29 21:31:14.731 DEBUG WebSocketClient(1)[5] TLS: Rebex.Net.TlsException: Received unsuitable server certificate.
I guess it has nothing to do with the certificate validation, as i already played around with disabling it. Could you again help me out here, what could be the issue here?
How can i get hold of the server certificate for getting more details on it?
Full log:
----websocket log----
2023-03-29 21:31:14.227 DEBUG WebSocketClient(1)[5] TLS: Enabled cipher suites: 0x0C1F3CC32B000000.
2023-03-29 21:31:14.234 DEBUG WebSocketClient(1)[5] TLS: Applicable cipher suites: 0x0C1F3CC32B000000.
2023-03-29 21:31:14.239 VERBOSE WebSocketClient(1)[5] TLS: Sent TLS packet:
0000 |16-03-03-00-9B-01-00-00 97-03-03-64-24-92-02-B9| ...........d$...
0010 |DC-A1-80-9E-3F-6C-D0-E0 C3-B6-C5-06-FB-08-31-1A| ....?l........1.
0020 |25-5C-06-06-CF-7E-62-C0 67-82-55-00-00-28-C0-23| %\...~b.g.U..(.#
0030 |C0-24-C0-2B-C0-2C-C0-2F C0-30-C0-27-C0-28-00-9F| .$.+.,./.0.'.(..
0040 |00-9E-00-6B-00-67-00-9D 00-9C-00-3D-00-3C-CC-A8| ...k.g.....=.<..
0050 |CC-A9-CC-AA-00-FF-01-00 00-46-00-00-00-12-00-10| .........F......
0060 |00-00-0D-31-39-32-2E-31 36-38-2E-32-31-37-2E-32| ...192.168.217.2
0070 |00-0A-00-0A-00-08-00-17 00-18-00-19-00-1D-00-0B| ................
0080 |00-02-01-00-00-0D-00-14 00-12-04-01-04-03-05-01| ................
0090 |05-03-06-01-06-03-02-01 02-03-02-02-00-17-00-00| ................
2023-03-29 21:31:14.240 DEBUG WebSocketClient(1)[5] TLS: HandshakeMessage:ClientHello was sent.
2023-03-29 21:31:14.715 VERBOSE WebSocketClient(1)[5] TLS: Received TLS packet:
0000 |16-03-03-00-5B-02-00-00 57-03-03-E8-DB-1E-7D-4F| ....[...W.....}O
0010 |3E-DA-DC-FF-AE-72-2B-20 82-AB-D3-5B-D8-82-41-6E| >....r+ ...[..An
0020 |8F-6E-60-A7-03-10-2B-00 50-CA-00-20-3F-3E-BB-11| .n`...+.P.. ?>..
0030 |B0-B2-BC-78-37-20-2B-38 24-C1-0F-BE-EF-75-AD-74| ...x7 +8$....u.t
0040 |49-EF-9B-20-C3-5F-CE-08 AE-CB-4E-72-CC-A9-00-00| I.. ._....Nr....
0050 |0F-00-0B-00-02-01-00-FF 01-00-01-00-00-17-00-00| ................
2023-03-29 21:31:14.721 DEBUG WebSocketClient(1)[5] TLS: HandshakeMessage:ServerHello was received.
2023-03-29 21:31:14.722 INFO WebSocketClient(1)[5] TLS: Negotiating TLS 1.2, ECDSA with ephemeral ECDH, Chacha20Poly1305 with 256-bit key, AEAD.
2023-03-29 21:31:14.723 DEBUG WebSocketClient(1)[5] TLS: The server supports secure renegotiation.
2023-03-29 21:31:14.724 DEBUG WebSocketClient(1)[5] TLS: Extended master secret is enabled.
2023-03-29 21:31:14.724 VERBOSE WebSocketClient(1)[5] TLS: Received TLS packet:
0000 |16-03-03-05-F8-0B-00-05 F4-00-05-F1-00-02-C2-30| ...............0
0010 |82-02-BE-30-82-02-70-A0 03-02-01-02-02-10-5B-80| ...0..p.......[.
0020 |09-DE-78-28-E0-08-87-B2 33-37-CF-FF-8A-B0-30-05| ..x(....37....0.
0030 |06-03-2B-65-70-30-5C-31 0B-30-09-06-03-55-04-06| ..+ep0\1.0...U..
0040 |13-02-44-45-31-1A-30-18 06-03-55-04-0A-13-11-48| ..DE1.0...U....H
0050 |6F-6D-65-20-43-6F-6E-6E 65-63-74-20-47-6D-62-48| ome Connect GmbH
0060 |31-19-30-17-06-03-55-04 0B-13-10-50-72-6F-64-75| 1.0...U....Produ
0070 |63-74-20-53-65-63-75-72 69-74-79-31-16-30-14-06| ct Security1.0..
0080 |03-55-04-03-13-0D-44-45 56-20-53-4D-4D-20-43-41| .U....DEV SMM CA
0090 |20-41-36-30-1E-17-0D-32 30-31-31-31-32-30-38-34| A60...201112084
00A0 |38-35-39-5A-17-0D-32-33 31-31-31-32-30-38-34-38| 859Z..2311120848
00B0 |35-39-5A-30-4C-31-26-30 24-06-03-55-04-03-13-1D| 59Z0L1&0$..U....
00C0 |38-30-30-31-31-38-33-39 34-32-30-30-30-30-34-34| 8001183942000044
00D0 |30-33-33-35-30-30-30-30 30-30-30-36-35-31-22-30| 03350000000651"0
00E0 |20-06-03-55-04-0D-13-19 31-2E-33-2E-36-2E-31-2E| ..U....1.3.6.1.
00F0 |34-2E-31-2E-32-30-32-31 39-2E-34-2E-32-2E-31-2E| 4.1.20219.4.2.1.
0100 |32-30-2A-30-05-06-03-2B 65-70-03-21-00-BF-34-B5| 20*0...+ep.!..4.
0110 |E9-E5-38-14-DA-E7-FC-B1 14-D1-9A-E2-39-62-03-DD| ..8.........9b..
0120 |D5-B1-2A-6C-B6-40-C9-3B 0C-FE-AA-DE-F5-A3-82-01| ..*l.@.;........
0130 |56-30-82-01-52-30-1D-06 03-55-1D-25-04-16-30-14| V0..R0...U.%..0.
0140 |06-08-2B-06-01-05-05-07 03-02-06-08-2B-06-01-05| ..+.........+...
0150 |05-07-03-01-30-11-06-03 55-1D-0E-04-0A-04-08-44| ....0...U......D
0160 |63-70-E7-E7-B8-B2-54-30 4C-06-03-55-1D-20-04-45| cp....T0L..U. .E
0170 |30-43-30-41-06-0B-2B-06 01-04-01-81-9D-7B-04-01| 0C0A..+......{..
0180 |01-30-32-30-30-06-08-2B 06-01-05-05-07-02-01-16| .0200..+........
0190 |24-68-74-74-70-73-3A-2F 2F-77-77-77-2E-62-73-68| $
https://www.bsh
01A0 |2D-67-72-6F-75-70-2E-63 6F-6D-2F-64-69-67-69-74| -group.com/digit
01B0 |61-6C-2D-69-64-30-1F-06 03-55-1D-23-04-18-30-16| al-id0...U.#..0.
01C0 |80-14-32-A6-11-B5-D9-2E 53-A1-46-51-79-23-DA-FB| ..2.....S.FQy#..
01D0 |C5-2E-05-42-FC-AE-30-81 9E-06-08-2B-06-01-05-05| ...B..0....+....
01E0 |07-01-01-04-81-91-30-81 8E-30-2E-06-08-2B-06-01| ......0..0...+..
01F0 |05-05-07-30-01-86-22-68 74-74-70-3A-2F-2F-6F-63| ...0.."http://oc
0200 |73-70-2E-33-2E-71-61-2E 67-6F-2E-6E-65-78-75-73| sp.3.qa.go.nexus
0210 |67-72-6F-75-70-2E-63-6F 6D-30-5C-06-08-2B-06-01| group.com0\..+..
0220 |05-05-07-30-02-86-50-68 74-74-70-3A-2F-2F-70-67| ...0..Phttp://pg
0230 |77-2E-33-2E-71-61-2E-67 6F-2E-6E-65-78-75-73-67| w.3.qa.go.nexusg
0240 |72-6F-75-70-2E-63-6F-6D 2F-64-70-2F-63-61-2F-35| roup.com/dp/ca/5
0250 |62-66-37-33-34-37-61-36 35-36-39-31-39-38-64-38| bf7347a6569198d8
0260 |35-61-34-31-37-66-37-32 63-37-63-66-63-39-65-31| 5a417f72c7cfc9e1
0270 |33-32-32-30-62-39-39-30 0E-06-03-55-1D-0F-01-01| 3220b990...U....
0280 |FF-04-04-03-02-07-80-30 05-06-03-2B-65-70-03-41| .......0...+ep.A
0290 |00-0F-BC-1D-0B-0C-D3-A2 34-0A-46-DB-5F-D5-63-DC| ........4.F._.c.
02A0 |B0-78-37-CB-B7-AB-3F-CE 51-4F-AF-89-49-84-9C-86| .x7...?.QO..I...
02B0 |2A-D7-A1-31-71-5A-18-1C D9-6E-EB-0A-CF-73-EC-70| *..1qZ...n...s.p
02C0 |19-39-03-26-0F-2E-FE-9F 7C-99-4B-3D-DA-A6-DF-2F| .9.&....|.K=.../
02D0 |02-00-03-29-30-82-03-25 30-82-02-D7-A0-03-02-01| ...)0..%0.......
02E0 |02-02-10-59-F0-7A-5B-D7 4F-4D-36-59-E1-60-83-69| ...Y.z[.OM6Y.`.i
02F0 |7C-69-29-30-05-06-03-2B 65-70-30-64-31-0B-30-09| |i)0...+ep0d1.0.
0300 |06-03-55-04-06-13-02-44 45-31-1D-30-1B-06-03-55| ..U....DE1.0...U
0310 |04-0A-13-14-42-53-48-20 48-61-75-73-67-65-72-61| ....BSH Hausgera
0320 |65-74-65-20-47-6D-62-48 31-19-30-17-06-03-55-04| ete GmbH1.0...U.
0330 |0B-13-10-50-72-6F-64-75 63-74-20-53-65-63-75-72| ...Product Secur
0340 |69-74-79-31-1B-30-19-06 03-55-04-03-13-12-44-45| ity1.0...U....DE
0350 |56-20-41-70-70-6C-69-61 6E-63-65-20-43-41-20-31| V Appliance CA 1
0360 |30-1E-17-0D-32-30-30-39 31-30-31-33-30-35-33-34| 0...200910130534
0370 |5A-17-0D-32-35-30-39-31 30-31-33-30-35-33-34-5A| Z..250910130534Z
0380 |30-5C-31-0B-30-09-06-03 55-04-06-13-02-44-45-31| 0\1.0...U....DE1
0390 |1A-30-18-06-03-55-04-0A 13-11-48-6F-6D-65-20-43| .0...U....Home C
03A0 |6F-6E-6E-65-63-74-20-47 6D-62-48-31-19-30-17-06| onnect GmbH1.0..
03B0 |03-55-04-0B-13-10-50-72 6F-64-75-63-74-20-53-65| .U....Product Se
03C0 |63-75-72-69-74-79-31-16 30-14-06-03-55-04-03-13| curity1.0...U...
03D0 |0D-44-45-56-20-53-4D-4D 20-43-41-20-41-36-30-2A| .DEV SMM CA A60*
03E0 |30-05-06-03-2B-65-70-03 21-00-CD-82-E1-F2-8C-5D| 0...+ep.!......]
03F0 |86-97-37-EA-15-56-AE-41 0C-E6-0E-FB-92-54-50-00| ..7..V.A.....TP.
0400 |17-6C-14-30-91-2D-BA-70 9A-4A-A3-82-01-A5-30-82| .l.0.-.p.J....0.
0410 |01-A1-30-12-06-03-55-1D 13-01-01-FF-04-08-30-06| ..0...U.......0.
0420 |01-01-FF-02-01-00-30-1D 06-03-55-1D-0E-04-16-04| ......0...U.....
0430 |14-32-A6-11-B5-D9-2E-53 A1-46-51-79-23-DA-FB-C5| .2.....S.FQy#...
0440 |2E-05-42-FC-AE-30-4C-06 03-55-1D-20-04-45-30-43| ..B..0L..U. .E0C
0450 |30-41-06-0B-2B-06-01-04 01-81-9D-7B-04-01-02-30| 0A..+......{...0
0460 |32-30-30-06-08-2B-06-01 05-05-07-02-01-16-24-68| 200..+........$h
0470 |74-74-70-73-3A-2F-2F-77 77-77-2E-62-73-68-2D-67| ttps://www.bsh-g
0480 |72-6F-75-70-2E-63-6F-6D 2F-64-69-67-69-74-61-6C| roup.com/digital
0490 |2D-69-64-30-1F-06-03-55 1D-23-04-18-30-16-80-14| -id0...U.#..0...
04A0 |7D-21-10-D3-5F-DA-84-E8 CB-60-6C-CA-63-54-56-A4| }!.._....`l.cTV.
04B0 |A1-C0-EF-CB-30-0E-06-03 55-1D-0F-01-01-FF-04-04| ....0...U.......
04C0 |03-02-01-06-30-81-95-06 08-2B-06-01-05-05-07-01| ....0....+......
04D0 |01-04-81-88-30-81-85-30 4F-06-08-2B-06-01-05-05| ....0..0O..+....
04E0 |07-30-02-86-43-68-74-74 70-3A-2F-2F-70-6B-69-2D| .0..Chttp://pki-
04F0 |63-61-2D-64-65-76-2E-68 6F-6D-65-2D-63-6F-6E-6E| ca-dev.home-conn
0500 |65-63-74-2E-63-6F-6D-2F 33-37-33-31-38-33-36-30| ect.com/37318360
0510 |39-63-32-39-31-34-39-64 36-66-64-35-65-62-63-32| 9c29149d6fd5ebc2
0520 |31-62-32-38-66-62-38-35 30-32-06-08-2B-06-01-05| 1b28fb8502..+...
0530 |05-07-30-01-86-26-68-74 74-70-3A-2F-2F-70-6B-69| ..0..&http://pki
0540 |2D-6F-63-73-70-31-35-2D 64-65-76-2E-68-6F-6D-65| -ocsp15-dev.home
0550 |2D-63-6F-6E-6E-65-63-74 2E-63-6F-6D-30-55-06-03| -connect.com0U..
0560 |55-1D-1F-04-4E-30-4C-30 4A-A0-48-A0-46-86-44-68| U...N0L0J.H.F.Dh
0570 |74-74-70-3A-2F-2F-70-6B 69-2D-63-72-6C-2D-64-65| ttp://pki-crl-de
0580 |76-2E-68-6F-6D-65-2D-63 6F-6E-6E-65-63-74-2E-63| v.home-connect.c
0590 |6F-6D-2F-64-65-31-66-66 39-62-32-32-62-38-63-66| om/de1ff9b22b8cf
05A0 |65-30-62-62-64-36-62-32 32-36-39-32-30-34-62-34| e0bbd6b2269204b4
05B0 |37-39-62-30-05-06-03-2B 65-70-03-41-00-50-2F-DF| 79b0...+ep.A.P/.
05C0 |D3-40-63-A7-A7-FC-0A-2C B5-72-FA-30-AD-7B-1F-0E| .@c....,.r.0.{..
05D0 |F8-57-66-E3-12-35-2E-EF 3E-64-00-5F-50-9D-73-FC| .Wf..5..>d._P.s.
05E0 |17-F9-96-73-9B-7D-E1-43 44-65-BE-B7-28-98-8D-DC| ...s.}.CDe..(...
05F0 |F2-E0-40-4B-EB-FE-E3-E3 8B-B7-B4-6B-09 | ..@K.......k.
2023-03-29 21:31:14.725 DEBUG WebSocketClient(1)[5] TLS: HandshakeMessage:Certificate was received.
2023-03-29 21:31:14.731 DEBUG WebSocketClient(1)[5] TLS: Rebex.Net.TlsException: Received unsuitable server certificate.
at ocowd.rrnhi.qjnft(Byte[] p0, Int32 p1, Int32 p2, tpcwu p3)
at ocowd.rrnhi.cuufh(Byte[] p0, Int32 p1, Int32 p2)
at ocowd.rlvgh.gvejn(Byte[] p0, Int32 p1, Int32 p2)
at ocowd.rlvgh.kiwgm()
2023-03-29 21:31:14.732 INFO WebSocketClient(1)[5] TLS: Fatal Alert:UnexpectedMessage was sent.
2023-03-29 21:31:14.732 VERBOSE WebSocketClient(1)[5] TLS: Sent TLS packet:
0000 |15-03-03-00-02-02-0A | .......
2023-03-29 21:31:14.733 ERROR WebSocketClient(1)[5] HTTP: Error while sending request: Rebex.Net.TlsException: Received unsuitable server certificate.
---> Rebex.Net.TlsException: Received unsuitable server certificate.
at ocowd.rrnhi.qjnft(Byte[] p0, Int32 p1, Int32 p2, tpcwu p3)
at ocowd.rrnhi.cuufh(Byte[] p0, Int32 p1, Int32 p2)
at ocowd.rlvgh.gvejn(Byte[] p0, Int32 p1, Int32 p2)
at ocowd.rlvgh.kiwgm()
--- End of inner exception stack trace ---
at ocowd.rlvgh.kiwgm()
at ocowd.rlvgh.bhoig()
at ocowd.fmgwa.mlixy()
at ocowd.fmgwa.egdtv()
at Rebex.Net.TlsSocket.qnhsx()
at Rebex.Net.TlsSocket.Negotiate()
at ocowd.hbesd.bbgrz(ISocket p0, TlsCipher& p1)
at ocowd.hbesd.xmpcv()
at ocowd.fiwcw.lrocz()
at ocowd.fiwcw.nwvdi(Boolean p0)
at ocowd.fiwcw.hhvth()