passkit-generator: Getting unsupported file format issue,after pkpass file generate process.
const passCreated = await PassKit.PKPass.from({
model: `${process.cwd()}/src/BoardingPass.pass`,
certificates: {
wwdr,
signerCert,
signerKey,
signerKeyPassphrase,
},
});
try {
const buffer = passCreated.getAsBuffer();
await fs.writeFile('sample.pkpass', buffer);
this.logger.debug('Pass generated successfully....');
} catch (error) {
throw Error(error.message);
}
Used this,but getting file format issue on viewing it.
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Comments: 23 (11 by maintainers)
@alexandercerutti yes,actually we are using certificates from the client account,that’s why we are unable to share the certificates.