-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Error: Could not add PKCS#7 signer; no private key specified. #180
Comments
Hi @theobouwman, thanks for using passkit-generator! Do you mind providing in the example code the imports of using? Especially the |
@alexandercerutti the error occurs when calling import { promises as fs } from "fs";
import path from "path";
import express from 'express';
import passkit from "passkit-generator";
const PKPass = passkit.PKPass;
import { pinoHttp, logger } from './utils/logging.js';
import { fileURLToPath } from 'url';
import { dirname } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename); |
Are you sure that this code retrieves the right content? fs.readFile(
path.resolve(__dirname, "certs/new/signerKey.pem"),
"utf-8",
), |
@alexandercerutti Yes i am 100% sure. Printing the |
Do you mind sharing the header of your signerKey file? Like, the first 5-6 rows |
|
That's weird. Any chance you chould share privately the project? I'm not sure about the issue here. |
@alexandercerutti I fixed it. I used the same passphrase for
|
Okay great! :D Glad you solved |
I was going to say i fixed this by specifying the correct passphrase in my code. i too used the same password and phrase for convenience |
I have the same issue and have two different passphrase. Is there a key for a signerCert passphrase? Looks like the code doesn't allow two different passphrase, one for each cert. |
@KStockton I kindly ask you to open a new issue as this has been resolved. Thank you 🚀 |
Running OS
macOS 13.6.1
Running Node Version
v20.3.1
Description
I followed all steps to create the certificates etc.
Trying to generate a pass based on the
examplePass
in the examples.But I am getting this error:
Error: Could not add PKCS#7 signer; no private key specified.
Expected behavior
Expected to generate a pass.
Steps to reproduce
Were you able to verify it by using (and changing) the examples?
No
The text was updated successfully, but these errors were encountered: