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

PDF-sign failing with P12 #1

Open
SirLouen opened this issue Jan 3, 2025 · 0 comments
Open

PDF-sign failing with P12 #1

SirLouen opened this issue Jan 3, 2025 · 0 comments

Comments

@SirLouen
Copy link

SirLouen commented Jan 3, 2025

Issue Description

I'm trying to use the p12 pdf signer with a p12 certificate with password

But when I execute the signWithP12 the resulting PDF signed with the P12 certificate gets corrupted. Its like if its trying to sign it and all the P12 certificate information is in the corrupted PDF if I inspect it, but then it doesnt attach the PDF information.

I've set this simple app to test it
https://github.com/SirLouen/pdf-signer

We can find a test certificate in the certs folder. The password for the certificate is test.

Maybe I'm missing something?

Steps to Reproduce

Using my repo to test it
https://github.com/SirLouen/pdf-signer

Expected Behavior

The resulting in a certified PDF like

image

Current Behavior

PDF results broken, but if we inspect the content of the PDF we can clearly see that the library tries to insert the certificate not successfully

Operating System [e.g., Windows 10]

Windows 11 + WSL 2

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