# OpcCertificateSettings Class

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">OpcCertificateSettings Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Defines the setup of an application instance certificate.

## Syntax

<div class="api-signature" data-lang="csharp">

```csharp
public class OpcCertificateSettings
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Class OpcCertificateSettings
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → **OpcCertificateSettings**

## Constructors

| Name | Description |
|---|---|
| [OpcCertificateSettings](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatesettings/members#opccertificatesettings) | Initializes a new instance of the OpcCertificateSettings class using the name of the application its instance certificate information is to be represented by the settings. |

## Fields

| Name | Description |
|---|---|
| [DefaultKeySize](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatesettings/members#defaultkeysize)<span class="api-meta">static</span> | Represents the default value that is used by the OpcCertificateSettings as initial value of the [KeySize](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatesettings/members#keysize) property. |
| [DefaultLifetime](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatesettings/members#defaultlifetime)<span class="api-meta">static</span> | Represents the default value that is used by the OpcCertificateSettings as initial value of the [Lifetime](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatesettings/members#lifetime) property. |

## Properties

| Name | Description |
|---|---|
| [ApplicationName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatesettings/members#applicationname) | Gets the name of the application its instance certificate is setup. |
| [ApplicationUri](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatesettings/members#applicationuri) | Gets or sets the uniform resource identifier of the application instance. |
| [DomainNames](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatesettings/members#domainnames) | Gets a collection of domain names typically used by the application instance. |
| [KeySize](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatesettings/members#keysize) | Gets or sets the number of bits to use to create the key of the certificate. |
| [Lifetime](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatesettings/members#lifetime) | Gets or sets the number of months the certificate will be valid. |
| [Organization](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatesettings/members#organization)<span class="api-meta">since v2.58</span> | Gets or sets the name of the organization running the application instance. |
| [SubjectName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatesettings/members#subjectname) | Gets or sets the subject name portion of the certificate. |

## Methods

| Name | Description |
|---|---|
| [Of](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatesettings/members#of)<span class="api-meta">static</span> | Retrieves the best certificate setup for the application `instance` specified. |

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.5–v2.59 |
