# OpcCertificateRequestedEventArgs Class

> Reference: Provides the event data for the CertificateRequested event.

<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">OpcCertificateRequestedEventArgs Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Provides the event data for the [CertificateRequested](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcapplicationinstance/members#certificaterequested) event.

## Syntax

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

```csharp
public class OpcCertificateRequestedEventArgs : EventArgs
```

</div>

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

```vbnet
Public Class OpcCertificateRequestedEventArgs
    Inherits EventArgs
```

</div>

## Inheritance

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

## Constructors

| Name | Description |
|---|---|
| [OpcCertificateRequestedEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificaterequestedeventargs/members#opccertificaterequestedeventargs) | Initializes a new instance of the OpcCertificateRequestedEventArgs class using the event data specified. |

## Properties

| Name | Description |
|---|---|
| [AlternativeCertificate](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificaterequestedeventargs/members#alternativecertificate) | Gets or sets the certificate the application uses instead of the [OriginalCertificate](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificaterequestedeventargs/members#originalcertificate). |
| [AutoCreateCertificate](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificaterequestedeventargs/members#autocreatecertificate) | Gets value indicating whether the framework will automatically create a new [X509Certificate2](https://learn.microsoft.com/dotnet/api/system.security.cryptography.x509certificates.x509certificate2) instance by its own if [AlternativeCertificate](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificaterequestedeventargs/members#alternativecertificate) is a null reference (Nothing in Visual Basic). |
| [OriginalCertificate](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificaterequestedeventargs/members#originalcertificate) | Gets or sets the [X509Certificate2](https://learn.microsoft.com/dotnet/api/system.security.cryptography.x509certificates.x509certificate2) instance determined, evaluated and not used upon [Reason](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificaterequestedeventargs/members#reason). |
| [Reason](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificaterequestedeventargs/members#reason) | Gets one of the members defined by the [OpcCertificateValidationResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationresult/) enumeration which provides the outcome of the evaluation process of the [OriginalCertificate](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificaterequestedeventargs/members#originalcertificate) information. |

Inherits members from [EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs).

## Applies to

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