Home/Without a Mac/How do I sign and notarize a Tauri app for macOS without a Mac?

How do I sign and notarize a Tauri app for macOS without a Mac?

Updated · airankrush

The short answer

Short answer: Tauri's docs state that signing requires an Apple device, so it cannot be done on Windows or Linux. Notarization is submitted automatically by tauri build after signing, with credentials supplied through environment variables. With only a free developer account you can sign for testing, but you cannot notarize.

Which steps require macOS

What must be on macOS

  • Code signing. Tauri's macOS signing docs list an Apple device under prerequisites.
  • Generating the certificate signing request. The documented flow is to generate the CSR on a Mac, upload it, then download the .cer and open it to install the certificate into the keychain.

What a browser on any operating system can do

  • Join the Apple Developer Program and create the certificate in the developer account (which needs the CSR first).
  • Generate an app-specific password, or create an App Store Connect API key.

Two limits to understand first

  • A free Apple developer account can only be used for testing and development. It cannot notarize, and the app will still show as unverified.
  • The docs say only the team's Account Holder can create a Developer ID Application certificate. If that is not your role in the team, ask the Account Holder to create it and export the certificate and private key to you.

How to do it on a remote Mac

  1. Pick the right certificate type

    • Developer ID Application: for distribution outside the App Store, such as a dmg downloaded from your website. This page is mainly about this one.
    • Apple Distribution: for submitting to the Mac App Store. The flow is in Tauri distribution and store submission.

    Per the Tauri docs, notarization is required when using a Developer ID Application certificate.

  2. Generate the CSR on the remote Mac and install the certificate

    Reach the desktop through UU Remote, generate a certificate signing request in Keychain Access (follow Apple's documentation for the steps), use it to create the certificate in the developer account, download the .cer and open it on the remote Mac. The private key has been in this machine's keychain from the moment the CSR was generated.

  3. Look up the signing identity

    security find-identity -v -p codesigning

    The whole name string in the output that includes the Team ID is the signing identity.

  4. Tell Tauri which identity to use

    Choose one of two ways:

    • Put it in tauri.conf.json > bundle > macOS > signingIdentity.
    • Set the environment variable APPLE_SIGNING_IDENTITY.

    From then on, tauri build signs during bundling.

  5. Supply notarization credentials and rebuild

    The docs give two sets of environment variables. Use either one:

    • App Store Connect API: APPLE_API_ISSUER, APPLE_API_KEY, APPLE_API_KEY_PATH (pointing to the downloaded private key file; this file can only be downloaded once).
    • Apple ID: APPLE_ID, APPLE_PASSWORD (an app-specific password, not the account password), APPLE_TEAM_ID.

    Once they are set, run the build again and Tauri submits for notarization and waits for the result. If you would rather not wait, the CLI offers --skip-stapling: it does not staple the notarization ticket to the app and does not wait for notarization to finish.

  6. Export the certificate, ready for the end of the rental and for CI

    In Keychain Access, export the certificate as a password-protected .p12 and keep it yourself. When you move to CI later, the documented approach is to convert it to base64 (openssl base64 -A -in certificate.p12 -out certificate-base64.txt) and put that in APPLE_CERTIFICATE, with the password in APPLE_CERTIFICATE_PASSWORD. The remote machine is reclaimed after the rental ends and the keychain contents are not kept.

FAQ

I only want internal testing and do not want to pay for the developer program

You can use ad-hoc signing: set signingIdentity to -. The docs explain this is useful on Apple silicon Macs, because every app downloaded from the internet has to be signed. It does not spare users the step of allowing the app by hand in the Privacy & Security settings.

How long does notarization take?

Apple's documentation says usually under an hour, with no promised upper limit. We have no measured data. If the build is stuck waiting on notarization, you can produce the package with --skip-stapling first and deal with it afterwards.

How do I see why notarization failed?

Apple's notarytool can download the log for a given submission, which lists the problems one by one. A common one is an unsigned binary inside the package. The command form is in Apple's Customizing the notarization workflow documentation.

What should I watch for when putting passwords in environment variables on a remote machine?

Set them only in the current terminal session, and do not write them into files that get committed to the repository. The API private key file and the .p12 are your data: back them up yourself, and before the rental ends delete them from the machine and sign out of your Apple Account.

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All no-Mac guides