dOPC Client Toolkit
|
Close
|
Class property to handle public and private keys
This class is used in the TdOPCUAClient class to handle public and private keys for the security connect process.
If you want to connect to a secure OPC UA server, which means you have set the property SecurityMode to a value <> None, then you must have a certificate. To create an OPC UA client certificate you can use e.g. our example program "..\ua-core\UACreateCert or e.g. OpenSSL. Click here to download an OpenSSL example script to create certificates for your OPC UA client programs.
Once you have created a certificate, you can load the public and private keys into the component at run time or design time.
At design time:
To load the certificate at design time, you can use the property editor of the SecurityKeypair property. You can open this editor by double clicking on (TuaKeypair) or by clicking on the 3 dots (...) of the "SecurityKeypair" property.
At runtime:
To load the your certificate at run time you can use e.g. following methods:
Public and Private key are type of ByteString. This type is a normal string but has a helper class with following methods:
Look also to: ua.client.TdOPCUAClient.OnGetCertificate.
Kassl GmbH Copyright © 2024. All rights reserved.
|