---
title: isCertificateExpirationEnforced
framework: lightweightcoderequirements
role: symbol
role_heading: Type Property
path: lightweightcoderequirements/ondiskcodesigningflags/valueset/iscertificateexpirationenforced
---

# isCertificateExpirationEnforced

Flag indicating that the signature on this code should be treated as invalid if the certificate it was signed with expired.

## Declaration

```swift
static let isCertificateExpirationEnforced: OnDiskCodeSigningFlags.ValueSet
```

## Discussion

Discussion By default code signatures are valid if the certificate they were signed with was valid at the time of signing. This flag invalidates signatures from certificatest that are expired at the time of use. This is equivalent to CS_CHECK_EXPIRATION in C APIs.
