question

Kim Strasser avatar image
Kim Strasser asked

Issue with PEM Certificate / API Key

I have exported my PEM file and after that I copied the contents of the file in the Terminal with pbcopy < ~/Downloads/Pemfilenew.pem

I deleted "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----" and copied the string in the text field. But I always get an error message. In addition, I have tried deleting the blank spaces in the string but it's still not working.

Output: Could not locate Private Key!

https://api.playfab.com/docs/tutorials/landing-players/push-notification-basics/push-notifications-for-ios

or here:

API Call Results { "code": 400, "status": "BadRequest", "error": "PushServiceError", "errorCode": 1095, "errorMessage": "End of list found where not expected", "CallBackTimeMS": 967 }

https://api.playfab.com/documentation/admin/method/SetupPushNotification

Is something wrong with my string? Why is it not working?

Push Notifications
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Kim Strasser avatar image
Kim Strasser answered

I found the issue. I did something wrong when I exported the certificate. You need to exporte the certificate like it is described in this article:

https://api.playfab.com/docs/tutorials/landing-players/push-notification-basics/push-notifications-for-ios

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.