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

From OPC Labs Knowledge Base
Revision as of 19:41, 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)

uapsc asks opc.tcp://localhost:48010 -eams SecuritySignAndEncrypt -eu root:secret 
browseSecurityGroups

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

browseSecurityGroups
getSecurityGroupElement TestGroup

Accept server certificate

browseTree


gsk TestGroup 0 10


gsk TestGroup 3 5


getSecurityKeys TestGroup 0 10 !repeat Infinite