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

# SSLCopyCertificateAuthorities(_:_:)

Retrieves the current list of certification authorities.

## Declaration

```swift
func SSLCopyCertificateAuthorities(_ context: SSLContext, _ certificates: UnsafeMutablePointer<CFArray?>) -> OSStatus
```

## Parameters

- `context`: An SSL session context reference.
- `certificates`: On return, a pointer to a value of type CFArrayRef. This array contains values of type SecCertificateRef representing the current set of certification authorities (specified with the doc://com.apple.security/documentation/Security/SSLSetCertificateAuthorities(_:_:_:) function). Returns a NULL array if doc://com.apple.security/documentation/Security/SSLSetCertificateAuthorities(_:_:_:) has not been called. You must call the CFRelease function to release this array when you are finished with it.

## Return Value

Return Value A result code. See Secure Transport Result Codes.

## See Also

### Related Documentation

- [SSLCopyDistinguishedNames(_:_:)](security/sslcopydistinguishednames(_:_:).md)
