Skip to main content
Version: 2.8

OPC-UA Server Configuration

The OPC-UA configuration is stored in a configuration file .\Config\HumanOS.PeSeL.OPCUAServer\settings.json.

Server Configuration

Only one OPC-UA server can be configured. All settings are inside the "ServiceInstance"-node:

AttributeDescriptionData Type
IdThe Id attribute defines the group-node of the OPC-UA server. This Id is used within service rules to connect the OPC-UA server with devices.System.Guid

Following sub nodes describe the OPC-UA settings:

AttributeDescriptionData Type
PortBinding port of the OPC-UA endpoints. Default is 4840.System.Int32
NameName of the OPC-UA server (used in certificates)System.String
ServerUriURI of the server (used in certificates)System.String
EnableTraceLog[opt] Flag, if the trace log is active. The log is put to the folder $(AppConfig:CommonAppPath)\HumanOS.PeSeL.OPCUAServer\logSystem.Boolean
DisableAnonymous[opt] Disables the anonymous authentication procedure, default is falseSystem.Boolean
DisableBasicNoSecurity[opt] Disables the no-security endpoint, default is falseSystem.Boolean
CertificatePath[opt] Specifies the certificate path depending on the store type. Default path for directory is Config\HumanOS.PeSeL.OPCUAServer\CertificateStores.System.String
CertificateTrustedPath[opt] Specifies path to trusted certificates, only applies when store type 'Windows' is active.System.String
CertificateIssuerPath[opt] Specifies path to issuer certificates, only applies when store type 'Windows' is active.System.String
CertificateRejectedPath[opt] Specifies path to rejected certificates, only applies when store type 'Windows' is active.System.String
CertificateSubject[opt] Specifies the certificate subject name e.g. CN=servercert/O=myorg/DC=myhost (only for store type 'Windows')System.String
StoreType[opt] Specifies the store type, either 'Directory' or 'Windows', if left empty the 'Directory' type is takenSystem.String
NOTE

The certificate file type is expected to be .pfx.

Service Rule

A service rule is needed to bind the OPC-UA server to different UHAL devices. The service rule can be configured directly in the settings.json file.

Trial Version

A popup window appears when running HumanOS® SmartGateway Trial version. The OPC-UA server is functional only for one hour.

UaExpert Error