dOPC Client Toolkit
Close
ua.client.TuaKeypair.Password

Sets the password for decrypting an encrypted private key.

property Password: string;
__property AnsiString Password;

This property sets the password required to decrypt an encrypted private key (Keypair.PrivateKey). 

Please note that, depending on security issues, the value of this property is not stored in the DFM file. 

It is also possible to load an encrypted private key using the DecodePrivateKey method of the ua.client component.

If you have generated an encrypted private key using the 'Keypair Property Dialog', for example, you can use the following code to set the password. Otherwise, you will receive an error message. 

 

procedure TForm1.Button1Click(Sender: TObject); begin dOPCUAClient1.URL := 'opc.tcp://localhost:53530/OPCUA/SimulationServer'; dOPCUAClient1.SecurityKeypair.Password := 'test'; dOPCUAClient1.Active := true; end;
Copyright © 2001 to 2026 by Kassl GmbH.