OPC Studio User's Guide and Reference
ObtainNewCertificate Method (IEasyUAClientServerApplicationExtension)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Application.Extensions Namespace > IEasyUAClientServerApplicationExtension Class : ObtainNewCertificate Method
Obtains a new certificate from the certificate manager.

The ObtainNewCertificate methods obtain a new application own certificate from the certificate manager, and store it for subsequent usage.

Returns the certificate obtained from the certificate manager.

The operation is synchronous. It can take considerable time to execute, 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 an alternative based on asynchronous programming model (APM, System.IAsyncResult) pattern, see the BeginObtainNewCertificate method and related extension methods.

For a task-based asynchronous programming pattern alternative, see the ObtainNewCertificateAsync(IEasyUAClientServerApplication,UAEndpointDescriptor) extension method and its overloads.

Overload List
OverloadDescription
Obtains a new certificate from the certificate manager, specifying the GDS endpoint descriptor.  
Obtains a new certificate from the certificate manager, specifying the GDS endpoint descriptor, and a System.String progress update provider.  
Obtains a new certificate from the certificate manager, specifying the GDS endpoint descriptor, and a System.String-array progress update provider.  
Obtains a new certificate from the certificate manager, specifying the certificate request parameters.  
Obtains a new certificate from the certificate manager, specifying the certificate request parameters, and a System.String progress update provider.  
Obtains a new certificate from the certificate manager using the arguments object.  
Obtains a new certificate from the certificate manager using the arguments object, and specifying a System.String-array progress update provider.  
Obtains a new certificate from the certificate manager using the arguments object, and specifying a System.String-array progress update provider, and a cancellation token.  
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