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

Are chain certificates supported? #274

Open
DunklerPhoenix opened this issue Oct 24, 2024 · 0 comments
Open

Are chain certificates supported? #274

DunklerPhoenix opened this issue Oct 24, 2024 · 0 comments

Comments

@DunklerPhoenix
Copy link

Heho
I try to use opensign.
Ref: OpenSignLabs/OpenSign#1376
If I use a pkcs12 certificate with ca chain I get the following message, but with certificates without chain it works.
Could it be that chain certificates are not supported by this library?

Greetings
Cy

server-1     | new entry is insert in contracts_Document
server-1     | Err in signpdf TypeError: Cannot destructure property 'publicKey' of 'certBags[i].cert' as it is null.
server-1     |     at /usr/src/app/node_modules/@signpdf/signer-p12/dist/P12Signer.js:66:9
server-1     |     at Array.forEach (<anonymous>)
server-1     |     at P12Signer.sign (/usr/src/app/node_modules/@signpdf/signer-p12/dist/P12Signer.js:64:27)
server-1     |     at SignPdf.sign (/usr/src/app/node_modules/@signpdf/signpdf/dist/signpdf.js:72:30)
server-1     |     at PDF (file:///usr/src/app/cloud/parsefunction/pdf/PDF.js:405:38)

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