I am having some troubles connecting my opc ua client to CodeSys Server with Sign or Sign & Encrypt (Basic256Sha256).
If I connect with None and None it works correctly.
When I first execute it shows an error BadSecurityChecksFailed, so I go to the CodeSys Server and trust my certificate.
After that, when I try to connect again the servers return an BadInvalidArgument.
Using WireShark I can see that I am saying something null where CodeSys does not accept, but I can find what I am sending wrong.
Not sure what settings you have, but maybe the server isn't set up correctly? For example, check /etc/CODESYSControl_User.cfg (Linux) to make sure these items are in place:
Hello,
I was using an old version of CodeSys, and adding this properties at CODESYSControl_user.cfg worked.
But I updated the CodeSys version, and the error returned.
In this version the [CmpOPCUAServer] can be configured inside the software, correctly?
Is my configuration right (attachement) or I need to do something else?
Hello,
I am having some troubles connecting my opc ua client to CodeSys Server with Sign or Sign & Encrypt (Basic256Sha256).
If I connect with None and None it works correctly.
When I first execute it shows an error BadSecurityChecksFailed, so I go to the CodeSys Server and trust my certificate.
After that, when I try to connect again the servers return an BadInvalidArgument.
Using WireShark I can see that I am saying something null where CodeSys does not accept, but I can find what I am sending wrong.
I am using this opc ua client https://github.com/nauful/LibUA
It works fine for others opc ua server.
Not sure what settings you have, but maybe the server isn't set up correctly? For example, check /etc/CODESYSControl_User.cfg (Linux) to make sure these items are in place:
[CmpOPCUAServer]
SECURITY.CommunicationMode=SIGNED_AND_ENCRYPTED
SECURITY.Activation=ACTIVATED
NetworkPort=4843
NetworkPort is optional
Last edit: nothinrandom 2023-02-03
Hello,
I was using an old version of CodeSys, and adding this properties at CODESYSControl_user.cfg worked.
But I updated the CodeSys version, and the error returned.
In this version the [CmpOPCUAServer] can be configured inside the software, correctly?
Is my configuration right (attachement) or I need to do something else?