dOPC Client Toolkit
|
Close
|
Specifies the security mode of the connection.
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.
If you set SecurityMode to a value <> none, you need additionally to set the property SecurityPolicy:
Kassl GmbH Copyright © 2023. All rights reserved.
|