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

# SecCertificateCopySubjectSummary(_:)

Returns a human-readable summary of a certificate.

## Declaration

```swift
func SecCertificateCopySubjectSummary(_ certificate: SecCertificate) -> CFString?
```

## Parameters

- `certificate`: The certificate object for which you wish to return a summary string.

## Mentioned in

Examining a Certificate Importing an Identity

## Return Value

Return Value A string that contains a human-readable summary of the contents of the certificate. In Objective-C, call the CFRelease function to release this object when you are finished with it. Returns NULL if the data passed in the certificate parameter is not a valid certificate object.

## Discussion

Discussion Because all the data in the string comes from the certificate, the string is in whatever language is used in the certificate.

## See Also

### Related Documentation

- [SecCertificateCreateWithData(_:_:)](security/seccertificatecreatewithdata(_:_:).md)
