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

Port library to itext 5.5? #5

Open
petterreinholdtsen opened this issue Mar 31, 2016 · 2 comments
Open

Port library to itext 5.5? #5

petterreinholdtsen opened this issue Mar 31, 2016 · 2 comments

Comments

@petterreinholdtsen
Copy link

Hi. I'm trying to build portablesigner in Debian, and there the itext library is version 5.5. But in this version, the PdfSignatureApperance.setCrypto() method no longer exist and the code fail to build.

According to
http://stackoverflow.com/questions/11437709/signing-a-pdf-with-itextsharp and
http://stackoverflow.com/questions/28753918/digital-signatures-using-itext-5-5-5 the API was changed in version 5.3.

Would you be willing to port portablesigner to the new API?

@petterreinholdtsen
Copy link
Author

I was able to compile the source by modifying line 360 in src/net/pflaeging/PortableSigner/PDFSigner.java, replacing

sap.setCrypto(GetPKCS12.privateKey, GetPKCS12.certificateChain, null, null);

with
sap.setCertificate(GetPKCS12.certificateChain[0]);

I doubt that change is correct, but have not been able to test the program yet.

@petterreinholdtsen
Copy link
Author

I notice the commit message for jaapgeurts@e6eb646 claim to update to newer itext version. Perhaps it is related?

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