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

# sec_identity_access_certificates(_:_:)

## Declaration

```swift
func sec_identity_access_certificates(_ identity: sec_identity_t, _ handler: @escaping (sec_certificate_t) -> Void) -> Bool
```

## Parameters

- `identity`: A sec_identity_t instance.
- `handler`: A block to invoke one or more times with sec_certificate_t instances.

## Return Value

Return Value Returns true if the peer certificates were accessible, false otherwise.

## Discussion

Discussion Access the certificates associated with the sec_identity_t instance.
