[
https://issues.apache.org/jira/browse/PDFBOX-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14185795#comment-14185795
]
Tilman Hausherr commented on PDFBOX-2460:
-----------------------------------------
I can't get it to run, even with the second patch (which I think isn't needed).
I have installed strong encryption, but get this:
{code}
testProtectionError(org.apache.pdfbox.encryption.TestPublicKeyEncryption) Time
elapsed: 0.053 sec <<< ERROR!
java.io.IOException: The certificate matches none of 1 recipient entries
at
org.apache.pdfbox.pdmodel.encryption.PublicKeySecurityHandler.prepareForDecryption(PublicKeySecurityHandler.java:198)
at
org.apache.pdfbox.pdmodel.encryption.PublicKeySecurityHandler.decryptDocument(PublicKeySecurityHandler.java:117)
at
org.apache.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:1295)
at
org.apache.pdfbox.encryption.TestPublicKeyEncryption.testProtectionError(TestPublicKeyEncryption.java:140)
{code}
> fix TestPublicKeyEncryption.java
> --------------------------------
>
> Key: PDFBOX-2460
> URL: https://issues.apache.org/jira/browse/PDFBOX-2460
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.0.0
> Environment: java7 , deb7
> Reporter: Ralf Hauser
> Attachments: patch2460Decryption.txt, patch2460PublicKeyTestCase.txt
>
>
> as reported by Tilman in PDFBOX-2456
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)