You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This plugin is based on the S2OPC open source library.

OPC UA server protocol stack configuration

Attributes definition

AttributeDescriptionExpected valuesMandatory
urlThe server URL endpoint

“opc.tcp://:[/sub/path]”

e.g. “opc.tcp://localhost:4841
YES
appUriThe application URIe.g. “urn:S2OPC:localhost”YES
productUriThe product URIe.g. “urn:S2OPC:localhost”YES
appDescriptionApplication descriptionAny non-empty string.YES
localeIdThe default language Ide.g. "en-US", "fr-FR", ...YES
namespacesList of namespaces URI, starting at namespace 1e.g. for 2 users namespaces (ns=1, ns=2): [ "urn:S2OPC:localhost", "urn:S2OPC:localhost_2" ]YES
policiesArray of accepted policies
YES
policies.securityModeThe security modeA string among “None”, “Sign” and “SignAndEncrypt” (case insensitive)YES
policies.securityPolicyThe security policyA string among “None”, “Basic256”, “Basic256Sha256”, “Aes128Sha256RsaOaep” and “Aes256Sha256RsaPss”YES
policies.userPoliciesThe user policyA string among “Anonymous”, “username”, “username_None”, “username_Basic256”YES
usersA map of 'user':'password'e.g: {"user" : "password", "user2" : "xGt4sdE3Z+" }NO
users.user

NO
certificates

NO
certificates.serverCertPathThe Server certificate filename (DER format)e.g. "server_2k_cert.der"NO
certificates.serverKeyPathThe Server key filename (PEM format)e.g. "server_2k_key.pem"NO
certificates.trusted_rootThe list of trusted root certificates (DER)e.g. [ "cacert.der" ]NO
certificates.trusted_intermediateThe list of trusted intermediate certificates (DER)Same as “trusted_root”NO
certificates.revokedThe list of revoked certificates (DER)Same as “trusted_root”NO
certificates.untrusted_rootThe list of untrusted root certificates (DER)Same as “trusted_root”NO
certificates.untrusted_intermediateThe list of untrusted intermediate certificates (DER)Same as “trusted_root”NO
certificates.issuedThe list of untrusted issued certificates (DER)Same as “trusted_root”NO

Configuration JSON structure

{
   "transport_layer":{
      "url":"opc.tcp://localhost:4841/OPCUA/s2opc",
      "appUri":"urn:S2OPC:localhost",
      "productUri":"urn:S2OPC:localhost",
      "appDescription":"Application description",
      "localeId":"en-US",
      "namespaces":[
         "urn:S2OPC:localhost",
         "urn:S2OPC:localhost_2"
      ],
      "policies":[
         {
            "securityMode":"None",
            "securityPolicy":"None",
            "userPolicies":[
               "anonymous"
            ]
         },
         {
            "securityMode":"Sign",
            "securityPolicy":"Basic256",
            "userPolicies":[
               "anonymous",
               "username"
            ]
         },
         {
            "securityMode":"SignAndEncrypt",
            "securityPolicy":"Basic256Sha256",
            "userPolicies":[
               "anonymous",
               "anonymous",
               "username_Basic256Sha256",
               "username_None"
            ]
         }
      ],
      "users":{
         "user":"password",
         "user2":"xGt4sdE3Z+"
      },
      "certificates":{
         "serverCertPath":"server_2k_cert.der",
         "serverKeyPath":"server_2k_key.pem",
         "trusted_root":[
            "cacert.der"
         ],
         "trusted_intermediate":[
            
         ],
         "revoked":[
            "cacrl.der"
         ],
         "untrusted_root":[
            
         ],
         "untrusted_intermediate":[
            
         ],
         "issued":[
            
         ]
      }
   }
}


  • No labels