Forum Home › Forums › Communicating with Devices › BadIdentityTokenInvalid error when accessing Node OPCUA server
- This topic has 8 replies, 2 voices, and was last updated 5 years, 1 month ago by
Mikhail.
-
AuthorPosts
-
September 30, 2020 at 4:02 pm #7330
kumajaya
ParticipantShort story: Fixed with this commit
Long story: I can access Node OPCUA server from Python opc-client, Prosys OPCUA Explorer, and UaExpert but not from RS OPCUA driver with BadIdentityTokenInvalid error. I decided to compile Reference Client from OPCFoundation (with same branch as use by KpOpcUa, with hard coded certificate check domain disabled) and voila… I can access Node OPCUA server. So, my above change based on what I have found in OPCFoundation example codes.
September 30, 2020 at 4:10 pm #7331kumajaya
ParticipantSame problem in both RS running on Windows and Linux.
October 1, 2020 at 10:05 am #7335
MikhailModeratorI’ve copied my answer from GitHub:
Thank you for the pull request, but I can’t merge it because of the following:
1. Pull requests in this repository should be targeted to the develop branch.
2. Removing the lines makes impossible to apply the corresponding configuration options.
3. You should try changing the device configuration in KpOpcUa_XXX.xml to use the correct SecurityMode and SecurityPolicy.Please try the 3rd item and let me know about the result.
October 1, 2020 at 10:40 am #7339kumajaya
ParticipantOK. I’ll check it.
October 1, 2020 at 12:07 pm #7340kumajaya
ParticipantOh my bad… Sign & encrypt and Basic256Sha256 is the only security mode and policy accepted by my Node OPCUA server. Let me check further what’s exactly the problem.
October 1, 2020 at 5:42 pm #7342kumajaya
ParticipantI can connect with every 7 combination supported by Node OPCUA from UaExpert dan Prosys including “None and None” but only “Sign & encrypt and Basic256Sha256” with KpOpcUa. No problem, I can connect to Node OPCUA server now without modified source code.
October 2, 2020 at 11:57 am #7344
MikhailModeratorI can connect to Node OPCUA server now without modified source code.
Good.
I can connect with every 7 combination supported by Node OPCUA from UaExpert dan Prosys including “None and None” but only “Sign & encrypt and Basic256Sha256” with KpOpcUa.
Interesting. Could you also try this official utility made by OPC Foundation? The source code of the utility is available on OPC Foundation’s GitHub if needed.
October 2, 2020 at 4:43 pm #7345kumajaya
ParticipantI can connect with every security level supported by the server using above official client.
October 5, 2020 at 11:53 am #7350
MikhailModeratorThis means that likely it’s possible to make the driver work with different security levels. Because the driver uses the same OPC UA libraries. Debug needed.
-
AuthorPosts
- You must be logged in to reply to this topic.