---
title: allowExpired
framework: security
role: symbol
role_heading: Type Property
path: security/sectrustoptionflags/allowexpired
---

# allowExpired

Allow expired certificates (except for the root certificate).

## Declaration

```swift
static var allowExpired: SecTrustOptionFlags { get }
```
