matrix-org / sygnal

Sygnal: reference Push Gateway for Matrix
Apache License 2.0
160 stars 144 forks source link

Error Deserialize .p8 file #277

Closed MPTA closed 2 years ago

MPTA commented 2 years ago

i have installed sygnal by ansible ( )

i used key authenticate and below config:

com.noya.tel:
    key_id: YJ8YAZ9364
    keyfile: /data/push.p8
    team_id: 87234S9RTJ
    topic: 1592994573     /// appId
    type: apns

also uploaded p8 file in /matrix/sygnal/data folder

now i have this error:

Screen Shot 1400-09-07 at 16 24 08
MPTA commented 2 years ago

now after re generate .p8 file now i am getting this error, i really need help to config sygnal.

Screen Shot 1400-09-08 at 13 04 14
reivilibre commented 2 years ago

Resolved out of band.

Issues were that the keyfile (p8) wasn't configured properly (should start ----- BEGIN PRIVATE KEY -----) and the topic was not set properly (it was set to a number; should be textual and generally the same as the 'bundle identifier'). I will document these issues / add some more validation to try and stop people getting stuck in this quicksand in the future.