Skip to content

Push documentation update regarding .p12 file password #1887

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
barnaclejive opened this issue May 24, 2016 · 2 comments
Closed

Push documentation update regarding .p12 file password #1887

barnaclejive opened this issue May 24, 2016 · 2 comments

Comments

@barnaclejive
Copy link

The documentation should be updated to make it clear that your .p12 files should not have a password. parse-server does not handle .p12 files that use a password. By default, Apple keychain access will prompt you to set a password on your .p12 file when you export it. You should leave the password blank when you export your push certificates to .p12 files.

If your .p12 file has a password set, you will see the following error in your nodejs.log:

Error: mac verify failure

@JeremyPlease
Copy link
Contributor

The default push adapter uses node-apn. While it is not formally documented anywhere, you can set the .p12 password in your Parse Server push configuration by setting the passphrase key.

push: {
  android: { ... },
  ios: [{
    pfx: __dirname + "/production.p12",
    bundleId: 'com.some.appname',
    passphrase: 'password-here',
    production: true
  }, {
    pfx: __dirname + "/dev.p12",
    bundleId: 'com.some.appname',
    passphrase: 'password-here',
    production: false
  }]
}

@flovilmart
Copy link
Contributor

flovilmart commented May 28, 2016

@JeremyPlease I updated the docs here: https://github.com/ParsePlatform/parse-server/wiki/Push#2-configure-parse-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants