<!--
{
  "availability" : [
    "macOS: 10.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecurityInterface",
  "identifier" : "/documentation/SecurityInterface/SFCertificatePanel",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Security Interface"
    ],
    "preciseIdentifier" : "c:objc(cs)SFCertificatePanel"
  },
  "title" : "SFCertificatePanel"
}
-->

# SFCertificatePanel

A panel or sheet that displays one or more certificates.

```
class SFCertificatePanel
```

## Overview

The following figure shows an example of a certificate panel.

![Certificate panel](images/com.apple.securityinterface/media-1965612.jpg)

An [`SFCertificatePanel`](/documentation/SecurityInterface/SFCertificatePanel) can optionally display all of the certificates in a certificate chain.

This class displays certificate details, but not trust settings. To display a certificate with editable trust settings in a panel or sheet, use the [`SFCertificateTrustPanel`](/documentation/SecurityInterface/SFCertificateTrustPanel) class. To display certificates in a custom view, use the [`SFCertificateView`](/documentation/SecurityInterface/SFCertificateView) class.

Note that for macOS 10.4 and later, this class displays the evaluation status for each certificate. You can modify how the certificates are evaluated by calling the [`setPolicies(_:)`](/documentation/SecurityInterface/SFCertificatePanel/setPolicies(_:)) method.

## Topics

### Returning a Shared Certificate Panel Object

[`shared()`](/documentation/SecurityInterface/SFCertificatePanel/shared())

Returns a fully initialized, singleton certificate panel object.

### Providing Help

[`setHelpAnchor(_:)`](/documentation/SecurityInterface/SFCertificatePanel/setHelpAnchor(_:))

Sets the help anchor string for the sheet or modal panel.

[`setShowsHelp(_:)`](/documentation/SecurityInterface/SFCertificatePanel/setShowsHelp(_:))

Displays a Help button in the sheet or panel.

[`helpAnchor()`](/documentation/SecurityInterface/SFCertificatePanel/helpAnchor())

Returns the current help anchor string for the sheet or panel.

[`showsHelp()`](/documentation/SecurityInterface/SFCertificatePanel/showsHelp())

Indicates whether the help button is currently set to be displayed.

### Customizing the Appearance of the Sheet or Panel

[`setAlternateButtonTitle(_:)`](/documentation/SecurityInterface/SFCertificatePanel/setAlternateButtonTitle(_:))

Customizes the title of the alternate button.

[`setDefaultButtonTitle(_:)`](/documentation/SecurityInterface/SFCertificatePanel/setDefaultButtonTitle(_:))

Customizes the title of the default button.

[`setPolicies(_:)`](/documentation/SecurityInterface/SFCertificatePanel/setPolicies(_:))

Specifies one or more policies that apply to the displayed certificates.

[`policies()`](/documentation/SecurityInterface/SFCertificatePanel/policies())

Returns an array of policies used to evaluate the status of the displayed certificates.

### Displaying a Sheet or Panel

[`beginSheet(for:modalDelegate:didEnd:contextInfo:certificates:showGroup:)`](/documentation/SecurityInterface/SFCertificatePanel/beginSheet(for:modalDelegate:didEnd:contextInfo:certificates:showGroup:))

Displays one or more certificates in a modal sheet.

[`beginSheet(for:modalDelegate:didEnd:contextInfo:trust:showGroup:)`](/documentation/SecurityInterface/SFCertificatePanel/beginSheet(for:modalDelegate:didEnd:contextInfo:trust:showGroup:))

Displays a certificate chain in a modal sheet.

[`certificateView()`](/documentation/SecurityInterface/SFCertificatePanel/certificateView())

Returns the certificate view for the modal panel.

[`runModal(for:showGroup:)`](/documentation/SecurityInterface/SFCertificatePanel/runModal(for:showGroup:))

Displays a certificate chain in a modal panel.

[`runModal(forCertificates:showGroup:)`](/documentation/SecurityInterface/SFCertificatePanel/runModal(forCertificates:showGroup:))

Displays one or more specified certificates in a modal panel.

### Delegate method for providing help

  <doc://com.apple.documentation/documentation/ObjectiveC/NSObject-swift.class/certificatePanelShowHelp(_:)>



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)