---
title: "SecTrustCopyKey(_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sectrustcopykey(_:)"
---

# SecTrustCopyKey(_:)

## Declaration

```swift
func SecTrustCopyKey(_ trust: SecTrust) -> SecKey?
```
