Asynchronously obtains a new certificate pack from the certificate manager. Returns a task that represents the asynchronous operation. The value of the
TResult
contains the collection of certificates obtained from the certificate manager.
The ObtainNewCertificatePackAsync methods asynchronously obtain a new application own certificate pack from the certificate manager, and store it for subsequent usage.
When certificate pack is used, this method operates on certificates with certificate type Ids given by PackCertificateTypeIds.
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 ObtainNewCertificatePack(IEasyUAClientServerApplication,UAEndpointDescriptor) extension method and its overloads.
For an alternative based on asynchronous programming model (APM, System.IAsyncResult) pattern, see the BeginObtainNewCertificatePack(IEasyUAClientServerApplication,UAEndpointDescriptor) method and related extension methods.
Overload List
Overload | Description |
ObtainNewCertificatePackAsync(IEasyUAClientServerApplication,UAEndpointDescriptor) | Asynchronously obtains a new certificate pack from the certificate manager, specifying the GDS endpoint descriptor. |
ObtainNewCertificatePackAsync(IEasyUAClientServerApplication,UACertificateRequestParameters) | Asynchronously obtains a new certificate pack from the certificate manager, specifying the certificate request parameters. |
ObtainNewCertificatePackAsync(IEasyUAClientServerApplication,UAEndpointDescriptor,IProgress<String>) | Asynchronously obtains a new certificate pack from the certificate manager, specifying the GDS endpoint descriptor, and a System.String progress update provider. |
ObtainNewCertificatePackAsync(IEasyUAClientServerApplication,UAEndpointDescriptor,IProgress<String[]>) | Asynchronously obtains a new certificate pack from the certificate manager, specifying the GDS endpoint descriptor, and a System.String-array progress update provider. |
ObtainNewCertificatePackAsync(IEasyUAClientServerApplication,UACertificateRequestParameters,IProgress<String[]>) | Asynchronously obtains a new certificate pack from the certificate manager, specifying the certificate request parameters, and a System.String-array progress update provider. |
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