-
Notifications
You must be signed in to change notification settings - Fork 307
Open
Description
I am trying to get UaExpert to connect in sign & encrypt mode (it works with the security policy set to None in the client). The example server files have this policy enabled but I can't get it to work.
Thanks for the work you have done, I needed a basic server to test against which works well. It would just help if this security policy would work.
The debug log from the server is:
Press CTRL-C to exit
debug: conn.go:388 uacp 1: recv HELF with 56 bytes
debug: conn.go:429 uacp 1: sent ACKF with 28 bytes
debug: conn.go:315 uacp 1: recv &uacp.Hello{Version:0x0, ReceiveBufSize:0x10000, SendBufSize:0x10000, MaxMessageSize:0x1000000, MaxChunkCount:0x1388, EndpointURL:"opc.tcp://localhost:4840"}
debug: conn.go:388 uacp 1: recv OPNF with 133 bytes
debug: secure_channel.go:350 uasc 1/1: recv OPNF with 133 bytes
debug: secure_channel.go:718 handleOpenSecureChannelRequest: Got OPN Request
debug: secure_channel_instance.go:89 got sequence number 258
debug: secure_channel.go:1153 uasc 1/1: send *ua.OpenSecureChannelResponse with 1490 bytes
debug: conn.go:388 uacp 1: recv MSGF with 93 bytes
debug: secure_channel.go:350 uasc 1/2: recv MSGF with 93 bytes
debug: secure_channel_instance.go:89 got sequence number 259
debug: secure_channel.go:1153 uasc 1/2: send *ua.GetEndpointsResponse with 3574 bytes
debug: conn.go:388 uacp 1: recv CLOF with 57 bytes
debug: secure_channel.go:329 uasc 1: readChunk EOF
Secure Channel 1773183780 closed
debug: conn.go:388 uacp 2: recv HELF with 56 bytes
debug: conn.go:429 uacp 2: sent ACKF with 28 bytes
debug: conn.go:315 uacp 2: recv &uacp.Hello{Version:0x0, ReceiveBufSize:0x10000, SendBufSize:0x10000, MaxMessageSize:0x1000000, MaxChunkCount:0x1388, EndpointURL:"opc.tcp://localhost:4840"}
debug: conn.go:388 uacp 2: recv OPNF with 2929 bytes
debug: secure_channel.go:482 uasc 2: setting securityPolicy to http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256
debug: secure_channel.go:350 uasc 2/3309250733: recv OPNF with 2929 bytes
Secure Channel 1773183781 error: unexpected EOF
This is the section of the UaExpert log where it is trying to connect:
15:48:01.397 | Server Node | anon@localhost | Endpoint: 'opc.tcp://localhost:4840'
15:48:01.397 | Server Node | anon@localhost | Security policy: 'http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256'
15:48:01.398 | Server Node | anon@localhost | ApplicationUri: 'localhost'
15:48:01.398 | Server Node | anon@localhost | Used UserTokenType: Anonymous
15:48:11.443 | Server Node | anon@localhost | Error 'BadTimeout' was returned during OpenSecureChannel
15:48:11.443 | Server Node | anon@localhost | Connection status of server 'anon@localhost' changed to 'Disconnected'.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels