QuickOPC User's Guide and Reference
ObtainNewCertificateAsync Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Application.Extensions Namespace > IEasyUAClientServerApplicationExtension Class : ObtainNewCertificateAsync Method
Asynchronously obtains a new application own certificate from the certificate manager, and stores it for subsequent usage.Returns a task that represents the asynchronous operation. The value of the TResult contains the certificate obtained from the certificate manager.

The operation is asynchronous, because it involves multiple steps, and waiting for a finalization of the request by the GDS (see the OpcLabs.EasyOpc.UA.Gds.IEasyUACertificateManagement.FinishRequest method).

For a synchronous alternative, see the ObtainNewCertificate(IEasyUAClientServerApplication,UAEndpointDescriptor) extension method and its overloads.

For an alternative based on asynchronous programming model (APM, System.IAsyncResult) pattern, see the BeginObtainNewCertificate method and related extension methods.

Overload List
OverloadDescription
Asynchronously obtains a new application own certificate from the certificate manager, and stores it for subsequent usage.  
Asynchronously obtains a new application own certificate from the certificate manager, and stores it for subsequent usage.  
Asynchronously obtains a new application own certificate from the certificate manager, and stores it for subsequent usage.  
Asynchronously obtains a new application own certificate from the certificate manager, and stores it for subsequent usage.  
Asynchronously obtains a new application own certificate from the certificate manager, and stores it for subsequent usage.  
Asynchronously obtains a new application own certificate from the certificate manager, and stores it for subsequent usage.  
Asynchronously obtains a new application own certificate from the certificate manager, and stores it for subsequent usage.  
Asynchronously obtains a new application own certificate from the certificate manager, and stores it for subsequent usage.  
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