Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

OPC UA Server - Basic256Sha256

2023-02-02
2023-03-20
  • vitorguedes - 2023-02-02

    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.

     
  • nothinrandom - 2023-02-03

    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
  • vitorguedes - 2023-03-20

    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?

     

Log in to post a comment.