Skip to content
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

Missing signerKeyPassphrase in server/index.js #5

Open
locovo opened this issue Sep 25, 2023 · 0 comments
Open

Missing signerKeyPassphrase in server/index.js #5

locovo opened this issue Sep 25, 2023 · 0 comments

Comments

@locovo
Copy link

locovo commented Sep 25, 2023

Doesn't seem to be mentioned, or I might be blind, but for those who are getting length undefined error, you will need to pass in a signerKeyPassphrase alongside your certificates, which will be your private certificate key passphrase. See below:

const pass = await PKPass.from(
  {
    model: path.resolve(process.cwd(), "ticket.pass"),
    certificates: {
      wwdr,
      signerCert,
      signerKey,
      signerKeyPassphrase,
    },
  },
  ...
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

1 participant