Using OpcCmd Utility to work with OPC UA Security Key Service (SKS)

From OPC Labs Knowledge Base
Revision as of 19:48, 15 March 2021 by User (talk | contribs)

With Unified Automation C++ SDK Demo Server

Start uaservercpp.exe

configure security group 'TestGroup' in it (need an external tool to do that)

uaPubSubClient accessSecurityKeyService opc.tcp://localhost:48010 --EndpointAllowedMessagedSecurity SecuritySignAndEncrypt --EndpointUser root:secret 
browseSecurityGroups

Get an error. Copy client certificate from pkiserver/rejected to pkiserver/trusted/certs

browseSecurityGroups
getSecurityGroupElement TestGroup

Accept server certificate

browseTree


getSecurityKeys TestGroup 0 10


getSecurityKeys TestGroup 3 5


getSecurityKeys TestGroup 0 10 !repeat Infinite 0:0:15 !wait Infinite