Function

SecCertificateCopySubjectSummary

Returns a human-readable summary of a certificate.

Declaration

CFStringRef SecCertificateCopySubjectSummary(SecCertificateRef certificate);

Parameters

certificate

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

Return Value

A string that contains a human-readable summary of the contents of the certificate. 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

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

See Also

Certificate Components

Examining a Certificate

Learn how to retrieve properties from a certificate.

SecCertificateCopyCommonName

Retrieves the common name of the subject of a certificate.

SecCertificateCopyEmailAddresses

Retrieves the email addresses for the subject of a certificate.

SecCertificateCopyNormalizedIssuerSequence

Retrieves the normalized issuer sequence from a certificate.

SecCertificateCopyNormalizedSubjectSequence

Retrieves the normalized subject sequence from a certificate.

SecCertificateCopySerialNumberData

Returns the certificate’s serial number.

SecCertificateCopyKey

Retrieves the public key for a given certificate.

SecCertificateCopyShortDescription

Returns a copy of the short description of a certificate.

SecCertificateCopyLongDescription

Returns a copy of the long description of a certificate.