Hi,
we are using Aspose-Words for Java to convert Word-Documents to PDF-Files. Addionatly we add a digitial Signature. So far it works. Now we want to choose the Hash-Algorithm for the Signature. No matter which algorithm we choose in the PDF-File always SHA-1 is used as Hash-Algorithm.
Code-Snippet:
PdfSaveOptions options = new PdfSaveOptions();
CertificateHolder certificateHolder = CertificateHolder.create(“certificate.p12”, “password”);
PdfDigitalSignatureDetails pdfDigitalSignatureDetails = new PdfDigitalSignatureDetails(certificateHolder, null, null, new Date());
pdfDigitalSignatureDetails.setHashAlgorithm(PdfDigitalSignatureHashAlgorithm.SHA_512);
options.setDigitalSignatureDetails(pdfDigitalSignatureDetails);
doc.save(“Testdocument_SHA512.pdf”, options);
Regards
- Your input Word document.
- Please attach the output Pdf file that shows the undesired behavior.
- Please attach certificate.p12.
Hi,
i have attached the zip file with the information at the original post.
Regards
Hi,
thanks for clarification. I wonder why the enumeration PdfDigitalSignatureHashAlgorithm provides values like SHA_256 and SHA_512. Why are the constants provided if they dont't have any effect?
Regarding the adbe.pkcs7.sha1 subprofile Adobe states that "Other algorithms may be used to digest the signed data field; however, SHA1 is used to digest the signed data." Is it possible to use the specified SignatureHashAlgorithm to digest the signed data field?
Due to compliance rules, we must sign pdfs with SHA-256 or higher. Is there any setting/workaround which allows the usage of SHA-256 in the described setting?
Or do we have to wait until newer PDF versions (as SHA-256 is only supported for PDF1.6 and higher) and different subprofiles are supported? If so, is there any release plan?
Best regards
Jan
JanMundo:Is it possible to use the specified SignatureHashAlgorithm to digest the signed data field?Due to compliance rules, we must sign pdfs with SHA-256 or higher. Is there any setting/workaround which allows the usage of SHA-256 in the described setting?Or do we have to wait until newer PDF versions (as SHA-256 is only supported for PDF1.6 and higher) and different subprofiles are supported? If so, is there any release plan?
JanMundo:Is it possible to use the specified SignatureHashAlgorithm to digest the signed data field?
JanMundo:Is there any setting/workaround which allows the usage of SHA-256 in the described setting?
JanMundo:Or do we have to wait until newer PDF versions (as SHA-256 is only supported for PDF1.6 and higher) and different subprofiles are supported? If so, is there any release plan?
Hi,
are there any news to this topic. Is the support already in the release plan?
Regards
Jan
Thanks for your inquiry. We regret to share with you that there is no update available on WORDSNET-11263 and WORDSNET-11083. We apologize for your inconvenience.
The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan
The issues you have found earlier (filed as WORDSNET-11083) have been fixed in this Aspose.Words for .NET 19.12 update and this Aspose.Words for Java 19.12 update.