Hi there,
we have set up a mattermost server and a server for the push-service. We followed the documentation, but when we try to fire up a push-message like this:
curl http://127.0.0.1:8066/api/v1/send_push -X POST -H "Content-Type: application/json" -d '{ "message":"test", "badge": 1, "platform":"apple", "server_id":"de.xxxxxxx.Mattermost", "device_id":"000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"}'
the log shows this error message:
``
ERROR Failed to send apple push sid=de.xxxxxxx.Mattermost did=000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF err=crypto/tls: failed to parse certificate PEM data
The Push config:
{
"ListenAddress": ":8066",
"ApplePushServer": "gateway.push.apple.com:2195",
"ApplePushCertPublic": "/opt/matterpush/bin/MattermostPushPrivatePem_new.pem",
"ApplePushCertPrivate": "/opt/matterpush/bin/MattermostPushPrivatePem_new.pem",
"ThrottlePerSec": 100,
"ThrottleMemoryStoreSize": 10000,
"ThrottleVaryByHeader": "X-Forwarded-For"
}
We verified the certificate ok:
root@08786a57720f:/opt/matterpush/bin# openssl verify MattermostPushPrivatePem_new.pem
MattermostPushPrivatePem_new.pem: OK
Any ideas?
Thanks,
Patric