03/23/2022
Hi!
I would like to ask if by chance someone has already encountered errors during the validation of the nonce server when opening a client connection.
specifically I am struggling with this error:
[18:10:04 INF] Initializing driver…
[18:10:23 INF] POLICY ID:UserName
[18:10:23 INF] POLICY URIhttps://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15
[18:10:23 ERR] OPC UA (opc.tcp://localhost:59611) – Opc.Ua.ServiceResultException: Server nonce is not the correct length or not random enough. at Opc.Ua.Client.Session.ValidateServerNonce(IUserIdentity identity, Byte[] serverNonce, String securityPolicyUri, Byte[] previousServerNonce) at Opc.Ua.Client.Session.Open(String sessionName, UInt32 sessionTimeout, IUserIdentity identity, IList`1 preferredLocales, Boolean checkDomain) at Opc.Ua.Client.Session.Create(ApplicationConfiguration configuration, ITransportWaitingConnection connection, ConfiguredEndpoint endpoint, Boolean updateBeforeConnect, Boolean checkDomain, String sessionName, UInt32 sessionTimeout, IUserIdentity identity, IList`1 preferredLocales)
just with one opcua server.
can someone give me a little help?
thank you!
11/18/2015
Hi, the client looks like the .NET Standard library. There is an option to suppress the error by adding:
<SuppressNonceValidationErrors>
to the security configuration.
However, due to the nature of the issue, which means in the worst case the password is transmitted as clear text because the server provides a nonce with all zeroes, suppressing this error is not recommended.
1 Guest(s)