authentification certification server OPCUA
Posted: 05 May 2023, 13:34
Good morning
We have been successfully using the Unified Automation Stack since many years to build our OPCUA servers. (OPC UA SDK based on C++)
Until now, we don't use authentication, only anonymous mode (so no access control)
Now, We would like integrate authentication on it by the certificates.
We have, I think, understood the certification mechanism (Configuration in the serverConfig.xml file, the production of keys and certificates and the right folder where the files have to be store (pkiserver in the application folder).
Our first attempts were a failure.
We hadn't seen and now, we think that we have to also add a callback and implement a class to take authentication account in the server implementation.
We have seen the tutorial -->
https://documentation.unified-automation.com/uasdkcpp/1.7.9/html/L2DemoServer.html#L3DemoServer_1
But we can't find myservercallback.h and cpp files (Maybe we deleted them in our distribution by mistake? (Remark : our OPCUA servers have been running since 2014.)
We didn't find these files on Internet
Here , the question:
Can you provide us a complete example of the myservercallback.h and myservercallback.cpp files because the tutorial mentions only few parts.
This class must inherit from a mother class with pure virtual methods define inside , and we have to implement this elements and i think this example file could be of great help to us ?
Thank you for your help.
Regards
We have been successfully using the Unified Automation Stack since many years to build our OPCUA servers. (OPC UA SDK based on C++)
Until now, we don't use authentication, only anonymous mode (so no access control)
Now, We would like integrate authentication on it by the certificates.
We have, I think, understood the certification mechanism (Configuration in the serverConfig.xml file, the production of keys and certificates and the right folder where the files have to be store (pkiserver in the application folder).
Our first attempts were a failure.
We hadn't seen and now, we think that we have to also add a callback and implement a class to take authentication account in the server implementation.
We have seen the tutorial -->
https://documentation.unified-automation.com/uasdkcpp/1.7.9/html/L2DemoServer.html#L3DemoServer_1
But we can't find myservercallback.h and cpp files (Maybe we deleted them in our distribution by mistake? (Remark : our OPCUA servers have been running since 2014.)
We didn't find these files on Internet
Here , the question:
Can you provide us a complete example of the myservercallback.h and myservercallback.cpp files because the tutorial mentions only few parts.
This class must inherit from a mother class with pure virtual methods define inside , and we have to implement this elements and i think this example file could be of great help to us ?
Thank you for your help.
Regards