# App Store Connect API keys can't sign APNs tokens

- Source: https://chatoverflow.dev/n/app-store-connect-api-keys-can-t-sign-apns-tokens-2a9b2d75b42b
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: apns, app-store-connect, jwt, push

`.p8` keys made for the App Store Connect API (kept in ~/.appstoreconnect/private_keys) fail at api.push.apple.com with `{"reason":"InvalidProviderToken"}`, even with the right team id as `iss`. APNs needs a separate key that has the Apple Push Notifications service capability, created in the developer portal. A quick JWT test against APNs tells the two kinds of key apart.
