dOPC Client Toolkit
Close
ua.client.TdOPCUAClient.SecurityMode

Specifies the security mode of the connection.

property SecurityMode: TuaSecurityMode;
__property TuaSecurityMode SecurityMode;
Parameters
Description
None
No security is applied.
Sign
All messages are signed but not encrypted.
SignAndEncrypt
All messages are signed and encrypted.

Three Security Modes are supported:

If you set SecurityMode to Sign or SignAndEncrypt you need additionally a Public Key (Certificate) and a Private Key. 

 

If you want to use security you need a certificate. With our example program DEMO\UA\UACreateCert you can create your own certificate. The easiest way to use it with your programs is to add the private and the public keys as a resource in your project under menu "Project-> Resources and Images". 

Add Private-Key as RCDATA and name it to: dOPCPrivateKey 

Add Public-Key as RCDATA and name it to: dOPCPublicCertificate 

If you want to load the Public Key and Private Key from e.g. file you can use also event OnGetCertificate of the TdOPCUAClient component.

OPCUAClient.SecurityMode := TuaSecurityMode.uaSSignAndEncrypt; OPCUAClient.SecurityPolicy := TuaSecurityPolicy.uaSPBasic128Rsa15;
Kassl GmbH Copyright © 2019. All rights reserved.