nomad-cli / houston

Apple Push Notifications; No Dirigible Required
http://nomad-cli.com
MIT License
2.93k stars 229 forks source link

Where do you recommend we store the pem key? #148

Closed krzkrzkrz closed 7 years ago

krzkrzkrz commented 7 years ago

In the guide it says: /path/to/apple_push_notification.pem. Where do you recommend we store this pem key?

Using Rails, do we keep it at the application root level? Where is a sensible place?

dankimio commented 7 years ago

You can store the certificate in environment variable. Rails 5.1.0 will support encrypted secrets.

krzkrzkrz commented 7 years ago

Im referring to the pem file btw, not the key

dankimio commented 7 years ago

There's no need to store it anywhere. You can save it to environment variable APN_CERTIFICATE_DATA and houston will fetch it automatically.