beanit / iec61850bean

A Java IEC 61850 MMS stack for clients and servers.
https://www.beanit.com/iec-61850/
Apache License 2.0
143 stars 82 forks source link

[Help] Example with SSLSocketFactory #17

Closed mschreiber closed 3 years ago

mschreiber commented 3 years ago

An example for creating a connection using TLS would be great. If I pass the SSLSocketFactory

ClientSap clientSap = new ClientSap(SSLSocketFactory.getDefault());

it works, but the server, which does an TPDU Header version check rejects the connection saying that he expects TPDU Header version 3 but got 16.

sfeuerhahn commented 3 years ago

That is strange. the stack always sends version 3.