OPC Studio User's Guide and Reference
OldPrivateKeyPassword Property (UAImportCertificateArguments)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Application Namespace > UAImportCertificateArguments Class : OldPrivateKeyPassword Property
The password needed to access the private key of the certificate being imported.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Property OldPrivateKeyPassword As String
'Usage
 
Dim instance As UAImportCertificateArguments
Dim value As String
 
instance.OldPrivateKeyPassword = value
 
value = instance.OldPrivateKeyPassword
[NotNull()]
public string OldPrivateKeyPassword {get; set;}
[NotNull()]
public:
property String^ OldPrivateKeyPassword {
   String^ get();
   void set (    String^ value);
}

Property Value

The value of this property cannot be null (Nothing in Visual Basic).

The default value of this property is "" (String.Empty).

Remarks

When this value is not empty, it specifies the (only) password that will be used to access the private key of the certificate. When this value is empty, it denotes a default password. Default password is either an empty password, or the password configured in the OPC UA application (see OpcLabs.EasyOpc.UA.Engine.UAClientServerApplicationParameters.InstanceCertificatePrivateKeyPassword). The entity (user) that is importing the certificate does not necessarily have to know the private key password, if the password used by the certificate being imported is the same as the password configured in the OPC UA application.

The certificate private key password is not necessarily preserved by the certificate import process. After a successful import, the private key password of the imported certificate in the certificate store always matches the password configured in the OPC UA application (see OpcLabs.EasyOpc.UA.Engine.UAClientServerApplicationParameters.InstanceCertificatePrivateKeyPassword) - which can also be empty. If UAIngestCertificateArguments.SetNewPassword is false, the private key password configured in the OPC UA application is unchanged, and the private key password of the imported certificate in the certificate store matches it. If UAIngestCertificateArguments.SetNewPassword is true, the private key password in the OPC UA application is changed to the value given by the UAIngestCertificateArguments.NewPrivateKeyPassword property (can also be empty), and the private key password of the imported certificate in the certificate store then matches this new private key password.

The getter method of this property is pure, i.e. it does not have observable side effects.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also