Secure Enclave Token

Create and manage keys in your Mac’s Secure Enclave. Use them for SSH and client certificate authentication, with a macOS app and command-line interface.

Version 3.0 · Apple Silicon · macOS Tahoe 26 or later

Silver key inside a charcoal chip

Keys and certificates

Manage multiple keys, generate signing requests, and load certificates for compatible macOS clients.

Export or replace a certificate, or remove the loaded identity while retaining its key.

Using an identity

A loaded identity pairs a certificate with its Secure Enclave key.

SSH with the macOS keychain

Load an identity, then export a resident-key reference with Apple’s SSH tools. Add its public key to GitHub or your server, and point SSH to the macOS keychain provider.

The file on disk is a reference. The private key stays in the Secure Enclave. Keep the identity loaded when connecting.

Export a resident-key reference

With an identity loaded, run these commands in a new, empty directory. Add the resulting id_ecdsa_sk_rk.pub to your remote account’s authorized keys, then use the configuration shown here.

mkdir -p ~/.ssh/secure-enclave-token
cd ~/.ssh/secure-enclave-token
SSH_ASKPASS_REQUIRE=force SSH_ASKPASS=/usr/bin/true \
  /usr/bin/ssh-keygen -w /usr/lib/ssh-keychain.dylib -K

To choose among multiple identities, consult man ssh-keychain for the KEYCHAIN_CERTIFICATES filter.

~/.ssh/config
Host github.com
  IdentityFile ~/.ssh/secure-enclave-token/id_ecdsa_sk_rk
  SecurityKeyProvider /usr/lib/ssh-keychain.dylib
  User git
  IdentitiesOnly yes

Download and set up

Get the signed and notarized app for Apple Silicon Macs running macOS Tahoe 26 or later. No Xcode or Apple Developer account is needed to use the release.

  1. Install the app

    Unzip the download, move SecureEnclaveToken.app to Applications, and open it. If the token extension is unavailable, enable it in System Settings → General → Login Items & Extensions → Smart Card Readers, then refresh the app.

  2. Create a key

    Name the key and choose its availability and authentication policy. These settings are fixed when the key is created.

  3. Add its identity

    Create a self-signed certificate or import one from your CA. The app associates it with the selected key and publishes the identity.

Questions

How do I verify the download?

Run shasum -a 256 on the downloaded ZIP and compare the result with the SHA-256 below. It should match exactly.

shasum -a 256 ~/Downloads/SecureEnclaveToken-signed-arm64.zip

Version 3.0 ZIP SHA-256:

2ba447471f15ffc3185ae5ac0137e5e427ad605ab4984664560ff2b4e3222bc6

Can I store bearer tokens or API credentials?

Not currently. SEToken manages private keys generated in the Secure Enclave and their certificates. It does not store bearer tokens, API keys, or passwords.

macOS Keychain is designed to store those secrets with encryption and access controls. A bearer token still needs to be retrieved and sent to the service when used. If your service supports client certificate authentication (mTLS), SEToken can provide that identity instead.

Can I move a key to another Mac?

No. Secure Enclave private keys cannot be exported or restored from a backup. On another Mac, create a new key and certificate, then update any services that use the old public key.

Do I need a certificate authority?

You can create a self-signed certificate directly in the app. For client authentication to a service, use a certificate issued by a CA the server accepts, or configure that server to accept your self-signed certificate. Creating an identity does not change system trust.

Can I keep more than one identity?

Yes. Manage multiple keys from the sidebar and keep multiple identities loaded. Replacing or removing one key’s certificate leaves the others intact.

What happens when I close the app window?

The Dock icon and app menus disappear while the menu bar dropdown stays available. Open the window again from the menu bar. Quitting the app does not remove published identities.

Does it work on Intel Macs or older macOS versions?

This version targets Apple Silicon and requires macOS Tahoe 26.0 or later. Building it requires Xcode 26 or later. Keychain and CryptoTokenKit access require a signed app and extension.

Where can I find a ready-to-install build?

Download the signed and notarized app from the version 3.0 release. Unzip it and move the app to Applications. GitHub Actions artifacts are unsigned build checks; use the release download for installation.