# CryptoCertificatePurpose

`import { CryptoCertificatePurpose } from "destack:crypto/binding";`

Certificate verification purpose.

```ds title="CryptoCertificatePurpose"
export enum CryptoCertificatePurpose {
    ServerAuth = 1,
    ClientAuth = 2,
    CodeSigning = 3,
    EmailProtection = 4,
}
```

[language/library/src/crypto/binding/certificate.ds:20:29](https://github.com/destack-sh/destack/blob/main/language/library/src/crypto/binding/certificate.ds#L20-L29)

## Variants

### `ServerAuth = 1`

Server TLS authentication.

### `ClientAuth = 2`

Client TLS authentication.

### `CodeSigning = 3`

Code signing validation.

### `EmailProtection = 4`

Email protection validation.
