# OpcCertificateValidationResult Enum

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

Specifies the result of the validation of a certificate.

## Syntax

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

```csharp
public enum OpcCertificateValidationResult
```

</div>

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

```vbnet
Public Enum OpcCertificateValidationResult
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [ValueType](https://learn.microsoft.com/dotnet/api/system.valuetype) → [Enum](https://learn.microsoft.com/dotnet/api/system.enum) → **OpcCertificateValidationResult**

## Remarks

The members [Missing](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationresult/#missing) to [InvalidDomain](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationresult/#invaliddomain) and [Valid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationresult/#valid) are defined by the SDK and describe the application certificate of the application itself (see [Reason](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificaterequestedeventargs/members#reason)). The members [Invalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationresult/#invalid) to [IssuerTimeInvalid](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationresult/#issuertimeinvalid) correspond to the status codes of OPC UA reported for a certificate (see [Result](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationfailedeventargs/members#result)).

## Fields

| Name | Value | Description |
|---|---|---|
| <a id="chainincomplete"></a>`ChainIncomplete` | `8` | The chain of the certificate is incomplete (BadCertificateChainIncomplete). |
| <a id="hostnameinvalid"></a>`HostNameInvalid` | `10` | The host name of the certificate is invalid (BadCertificateHostNameInvalid). |
| <a id="invalid"></a>`Invalid` | `6` | The certificate is invalid (BadCertificateInvalid). The validation also results in this member for any other status code not listed in this enumeration. |
| <a id="invaliddomain"></a>`InvalidDomain` | `5` | The application certificate of a server does not contain all domain names of the server. |
| <a id="invalidthumbrint"></a>`InvalidThumbrint` | `4` | A certificate with the configured subject name exists, but none with the configured thumbprint. |
| <a id="issuerrevocationunknown"></a>`IssuerRevocationUnknown` | `16` | It cannot be determined whether the certificate of the issuer has been revoked (BadCertificateIssuerRevocationUnknown). |
| <a id="issuerrevoked"></a>`IssuerRevoked` | `17` | The certificate of the issuer has been revoked (BadCertificateIssuerRevoked). |
| <a id="issuertimeinvalid"></a>`IssuerTimeInvalid` | `18` | The certificate of the issuer has expired or is not yet valid (BadCertificateIssuerTimeInvalid). |
| <a id="issuerusenotallowed"></a>`IssuerUseNotAllowed` | `15` | The certificate of the issuer must not be used for the requested purpose (BadCertificateIssuerUseNotAllowed). |
| <a id="missing"></a>`Missing` | `0` | The application certificate does not exist. |
| <a id="missingapplicationuri"></a>`MissingApplicationUri` | `3` | The application certificate does not contain an application URI. |
| <a id="missingidentifier"></a>`MissingIdentifier` | `1` | The application certificate is not configured. |
| <a id="missingprivatekey"></a>`MissingPrivateKey` | `2` | The application certificate exists without its private key. |
| <a id="revocationunknown"></a>`RevocationUnknown` | `12` | It cannot be determined whether the certificate has been revoked (BadCertificateRevocationUnknown). |
| <a id="revoked"></a>`Revoked` | `13` | The certificate has been revoked (BadCertificateRevoked). |
| <a id="timeinvalid"></a>`TimeInvalid` | `14` | The certificate has expired or is not yet valid (BadCertificateTimeInvalid). |
| <a id="untrusted"></a>`Untrusted` | `7` | The certificate is not trusted (BadCertificateUntrusted). |
| <a id="uriinvalid"></a>`UriInvalid` | `9` | The URI of the certificate is invalid (BadCertificateUriInvalid). |
| <a id="usenotallowed"></a>`UseNotAllowed` | `11` | The certificate must not be used for the requested purpose (BadCertificateUseNotAllowed). |
| <a id="valid"></a>`Valid` | `19` | The certificate is valid. |

## Applies to

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