<!--
{
  "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

[`+  sharedCertificatePanel`](/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

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

Displays one or more certificates in a modal sheet.

[`-  beginSheetForWindow:modalDelegate:didEndSelector: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.

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

Displays a certificate chain in a modal panel.

[`-  runModalForCertificates: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(_:)>

## Relationships

### Conforms To

[`NSAccessibilityElementProtocol`](/documentation/AppKit/NSAccessibilityElementProtocol)

[`NSUserInterfaceValidations`](/documentation/AppKit/NSUserInterfaceValidations)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`NSAppearanceCustomization`](/documentation/AppKit/NSAppearanceCustomization)

[`NSTouchBarProvider`](/documentation/AppKit/NSTouchBarProvider)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSStandardKeyBindingResponding`](/documentation/AppKit/NSStandardKeyBindingResponding)

[`NSUserInterfaceItemIdentification`](/documentation/AppKit/NSUserInterfaceItemIdentification)

[`NSUserActivityRestoring`](/documentation/AppKit/NSUserActivityRestoring)

[`Equatable`](/documentation/Swift/Equatable)

[`NSMenuItemValidation`](/documentation/AppKit/NSMenuItemValidation)

[`Sendable`](/documentation/Swift/Sendable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSAccessibilityProtocol`](/documentation/AppKit/NSAccessibilityProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSAnimatablePropertyContainer`](/documentation/AppKit/NSAnimatablePropertyContainer)

### Inherits From

[`NSPanel`](/documentation/AppKit/NSPanel)

### Inherited By

[`SFCertificateTrustPanel`](/documentation/SecurityInterface/SFCertificateTrustPanel)

---

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)