Replies: 1 comment
-
It seems that user/password for the .cer PLC certificate was missing. After I appended the lines:
there were only INFO messages: INFO:asyncua.client.ua_client.UaClient:activate_session |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Could you please advice what can be wrong with the code based on the FreeOpcUa project example:
(I replaced real values with "xxx" here. The PLC works as OPC UA server, the "PLC-OPCUA.cer" file was generated using the device. The code imports asyncua 1.0.4 elements.)
When I run it I got the following warning:
INFO:asyncua.client.ua_client.UaClient:activate_session
WARNING:asyncua.client.ua_client.UASocketProtocol:ServiceFault (BadIdentityTokenInvalid, diagnostics: DiagnosticInfo(SymbolicId=None, NamespaceURI=None, Locale=None, LocalizedText=None, AdditionalInfo=None, InnerStatusCode=None, InnerDiagnosticInfo=None)) from server received in response to ActivateSessionRequest
Then there are next warnings like "UASocketProtocol:ServiceFault (BadSessionNotActivated...)".
I see a difference in the file type - there was .der in the example, I use here .cer - but I am not sure if it makes a problem.
Beta Was this translation helpful? Give feedback.
All reactions