Using OpcCmd Utility to work with OPC UA Security Key Service (SKS): Difference between revisions

From OPC Labs Knowledge Base
No edit summary
No edit summary
Line 6: Line 6:
configure security group 'TestGroup' in it (need an external tool to do that)
configure security group 'TestGroup' in it (need an external tool to do that)


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


  browseSecurityGroups
  browseSecurityGroups

Revision as of 19:48, 15 March 2021

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