Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[milo-dev] Security Checks Failed

Hi,

 

I have another problem, this time while verifying the security:

The securityPolicy is the same for Client and Endpoint and with SecurityPolicy.None it is able to connect,

but with all other SecurityPolicies it sends the following error message:

 

18:12:53.057 [main] INFO  o.e.m.e.client.ClientExampleRunner - Using endpoint: opc.tcp://164.48.140.165:8666/example [Basic256Sha256]

18:12:53.760 [ua-netty-event-loop-1] ERROR o.e.m.o.s.c.h.UaTcpClientAcknowledgeHandler - [remote=/164.48.140.165:8666] Received error message: ErrorMessage{error=StatusCode{name=Bad_SecurityChecksFailed, value=0x80130000, quality=bad}, reason=security checks failed}

18:12:53.860 [ua-netty-event-loop-2] ERROR o.e.m.o.s.c.h.UaTcpClientAcknowledgeHandler - [remote=/164.48.140.165:8666] Received error message: ErrorMessage{error=StatusCode{name=Bad_SecurityChecksFailed, value=0x80130000, quality=bad}, reason=security checks failed}

18:12:53.869 [main] ERROR o.e.m.e.client.ClientExampleRunner - Error running client example: UaException: status=Bad_SecurityChecksFailed, message=security checks failed

java.util.concurrent.ExecutionException: UaException: status=Bad_SecurityChecksFailed, message=security checks failed

       at java.util.concurrent.CompletableFuture.reportGet(Unknown Source)

       at java.util.concurrent.CompletableFuture.get(Unknown Source)

       at org.eclipse.milo.examples.client.ReadExample.run(ReadExample.java:43)

       at org.eclipse.milo.examples.client.ClientExampleRunner.run(ClientExampleRunner.java:109)

       at org.eclipse.milo.examples.client.ReadExample.main(ReadExample.java:35)

Caused by: org.eclipse.milo.opcua.stack.core.UaException: security checks failed

       at org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientAcknowledgeHandler.onError(UaTcpClientAcknowledgeHandler.java:288)

       at org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientAcknowledgeHandler.decode(UaTcpClientAcknowledgeHandler.java:185)

       at io.netty.handler.codec.ByteToMessageCodec$1.decode(ByteToMessageCodec.java:42)

       at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:387)

       at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:245)

       at io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103)

       at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:292)

       at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:278)

       at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:962)

       at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)

       at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:528)

       at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:485)

       at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:399)

       at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:371)

       at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)

       at java.lang.Thread.run(Unknown Source)

 

What can I do to fix this?

 

Thanks in advance

 

BR

Daniel


Back to the top