QuickOPC User's Guide and Reference
ReuseExistingPrivateKey Property (UAObtainNewCertificateParameters)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Application Namespace > UAObtainNewCertificateParameters Class : ReuseExistingPrivateKey Property
Determines whether a private key will be reused, if possible.
Syntax
'Declaration
 
<DefaultValueAttribute(True)>
Public Property ReuseExistingPrivateKey As Boolean
'Usage
 
Dim instance As UAObtainNewCertificateParameters
Dim value As Boolean
 
instance.ReuseExistingPrivateKey = value
 
value = instance.ReuseExistingPrivateKey
[DefaultValue(true)]
public bool ReuseExistingPrivateKey {get; set;}
[DefaultValue(true)]
public:
property bool ReuseExistingPrivateKey {
   bool get();
   void set (    bool value);
}
Remarks

When this property is true, and the InstanceCertificatePrivateKeyFileName is not empty, the private key is read from the specified file. When this property is false and InstanceCertificatePrivateKeyFileName is empty, the private key is taken from the current application instance certificate, if available. In all other cases, a new key pair is requested from the GDS.

Due to limitations of the underlying OPC UA stack, this property is ignored when .NET Framework is the target development platform, and a certificate is always requested with a new private key. The value of this property is taken into account when .NET Standard is the target development platform.

Requirements

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

See Also