arminfelder / RocketChatMobilePushGateway

GNU General Public License v3.0
9 stars 8 forks source link

APNS_PRIVATE_KEY as env variable #2

Closed alvarow closed 4 years ago

alvarow commented 4 years ago

Hi, how do you set APNS_PRIVATE_KEY as an environment variable? That file is multiple lines after converted to .pem...

I tried like this:

APNS_PRIVATE_KEY='-----BEGIN EC PRIVATE KEY----- ==big-hash-here== -----END EC PRIVATE KEY-----'

but I get signing error...

ApplePushModel.cpp:225] signing failed

Thanks

arminfelder commented 4 years ago

@alvarow have you tried to use '\n' s

alvarow commented 4 years ago

I did :-(

For Google I do get: "Google push conn status: OK"

How do you do it?

Thanks

arminfelder commented 4 years ago

For my production setup, I still mount the certificate, but I will investigate on that as soon as I find some time

alvarow commented 4 years ago

It’s ok! I took it as a project and wrote my own! thanks anyway