I've created a key in the developer portal. After the creation the message talks about a ".key file" but when I download the file I obtain a ".p8 file". I've tried to import it in the keychain without succes.
$ security import APNSAuthKey.p8 -k ~/Library/Keychains/login.keychain
security: SecKeychainItemImport: Unknown format in import.
What is the format of the ".p8 file" ? How can I add it to the Keychain ?