Replies: 1 comment 3 replies
-
This is an error from the Server indicating it thinks your Client certificate is invalid for some reason... you might want to figure out what's going on here before trying to troubleshoot this broader scenario. |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hi,
I have another question regarding certificates. While our client is connected to the server, it may happen that the certificate on the PLC (i.e., the OPC UA server) gets changed or renewed. In that case, we currently handle it by closing the session and re-establishing the connection.
I have two questions about this scenario:
How can the client best detect that the certificate has changed?
At the moment, the onSessionInactive hook is triggered. When I try to access the client session there, it throws a Bad_CertificateInvalid UaException. By checking this exception I can tell that the certificate is invalid. Is this the correct approach?
Why do error messages keep appearing after certificate renewal?
After the server certificate is updated, the onSessionInactive hook is called, but I still see the following error message every 15–20 seconds:
o.e.m.o.s.t.c.u.UascClientMessageHandler : [remote=/xxx.xx.xx.xxx:xxxx] errorMessage=ErrorMessage{error=StatusCode[name=Bad_CertificateInvalid, value=0x80120000, quality=bad], reason=null}
Is Milo attempting to reconnect automatically here? I assumed that once onSessionInactive is called, this would not happen. Could it also be caused by our client still trying to access subscriptions info of the client, which then triggers the error? Any insights on the best way to handle this would be very helpful.
Beta Was this translation helpful? Give feedback.
All reactions