Reference
OpcCertificateManager Members
Provides a set of static (Shared in Visual Basic) methods to manage certificates.
Reference
OpcCertificateManager Members
- Type
- OpcCertificateManager
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Methods
CreateCertificate
| Overload | Description |
|---|---|
| Create | Creates a new application instance certificate (instance specified. |
| Create | Creates a new application instance certificate using the instance specified, while the created certificate will be stored in the certificate store defined by store. |
| Create | Creates a new application instance certificate (settings specified. |
| Create | Creates a new application instance certificate using the certificate settings specified, while the created certificate will be stored in the certificate store defined by store. |
CreateCertificate(IOpcApplicationInstance)
Creates a new application instance certificate (in memory) using the application instance specified.
[CLSCompliant(false)]
public static X509Certificate2 CreateCertificate(
IOpcApplicationInstance instance)<CLSCompliant(False)>
Public Shared Function CreateCertificate(
instance As IOpcApplicationInstance) As X509Certificate2Parameters
| Name | Type | Description |
|---|---|---|
instance | IOpc | An instance implementing the IOpc |
Returns
A new instance of the X509Certificate2 class representing the newly created certificate using the application instance information provided by instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The instance is a null reference ( |
CreateCertificate(IOpcApplicationInstance, OpcCertificateStoreInfo)
Creates a new application instance certificate using the instance specified, while the created certificate will be stored in the certificate store defined by store.
[CLSCompliant(false)]
public static X509Certificate2 CreateCertificate(
IOpcApplicationInstance instance,
OpcCertificateStoreInfo store)<CLSCompliant(False)>
Public Shared Function CreateCertificate(
instance As IOpcApplicationInstance,
store As OpcCertificateStoreInfo) As X509Certificate2Parameters
| Name | Type | Description |
|---|---|---|
instance | IOpc | An instance implementing the IOpc |
store | Opc | The Opc |
Returns
A new instance of the X509Certificate2 class representing the newly created certificate using the application instance information provided by instance.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The instance is a null reference ( |
CreateCertificate(OpcCertificateSettings)
Creates a new application instance certificate (in memory) using the certificate settings specified.
public static X509Certificate2 CreateCertificate(
OpcCertificateSettings settings)Public Shared Function CreateCertificate(
settings As OpcCertificateSettings) As X509Certificate2Parameters
| Name | Type | Description |
|---|---|---|
settings | Opc | The Opc |
Returns
A new instance of the X509Certificate2 class representing the newly created certificate using certificate settings specified.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The settings is a null reference ( |
CreateCertificate(OpcCertificateSettings, OpcCertificateStoreInfo)
Creates a new application instance certificate using the certificate settings specified, while the created certificate will be stored in the certificate store defined by store.
public static X509Certificate2 CreateCertificate(
OpcCertificateSettings settings,
OpcCertificateStoreInfo store)Public Shared Function CreateCertificate(
settings As OpcCertificateSettings,
store As OpcCertificateStoreInfo) As X509Certificate2Parameters
| Name | Type | Description |
|---|---|---|
settings | Opc | The Opc |
store | Opc | The Opc |
Returns
A new instance of the X509Certificate2 class representing the newly created certificate using certificate settings specified.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The settings is a null reference ( |
LoadCertificate
| Overload | Description |
|---|---|
| LoadCertificate( | Loads the application instance certificate using the certificate file specified by filePath. |
| LoadCertificate( | Loads the application instance certificate using the certificate file specified by filePath. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The filePath is an empty string. |
| Argument | The filePath is a null reference ( |
| File | The certificate file specified by filePath could not found. |
LoadCertificate(string)
Loads the application instance certificate using the certificate file specified by filePath.
public static X509Certificate2 LoadCertificate(string filePath)Public Shared Function LoadCertificate(filePath As String) As X509Certificate2Parameters
| Name | Type | Description |
|---|---|---|
filePath | String | The file path of the certificate file to load. |
Returns
A new instance of the X509Certificate2 class representing the certificate specified by filePath.
LoadCertificate(string, string)
Loads the application instance certificate using the certificate file specified by filePath.
public static X509Certificate2 LoadCertificate(string filePath, string password)Public Shared Function LoadCertificate(
filePath As String,
password As String) As X509Certificate2Parameters
| Name | Type | Description |
|---|---|---|
filePath | String | The file path of the certificate file load. |
password | String | The optional password required to access the certificate or a null reference ( |
Returns
A new instance of the X509Certificate2 class representing the certificate specified by filePath.
SaveCertificate
Saves the application instance certificate to the filePath specified.
public static void SaveCertificate(
string filePath,
X509Certificate2 certificate)Public Shared Sub SaveCertificate(
filePath As String,
certificate As X509Certificate2)Parameters
| Name | Type | Description |
|---|---|---|
filePath | String | The full qualified path to the certificate file to write. |
certificate | X509Certificate2 | The X509Certificate2 instance its certificate information is to be written to the filePath. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The filePath or certificate is a null reference ( |
Events
QueryInstance
Occurs when a X509Certificate2 instance is to be created using several certificate and key information. This event can be used to create new X509Certificate2 instances while considering custom, platform and operating system related restrictions.
public static event OpcCertificateQueryInstanceEventHandler QueryInstancePublic Shared Event QueryInstance As OpcCertificateQueryInstanceEventHandlerEvent type

