[
https://issues.apache.org/jira/browse/PDFBOX-3551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15627173#comment-15627173
]
acker apple commented on PDFBOX-3551:
-------------------------------------
FYI, the following folder has NO tests for encrypt/decrypt:
tools/src/test/java/org/apache/pdfbox
This is how I think certificate based issues have been overlooked
> CLI Decrypt broken, only allows 1 argument
> ------------------------------------------
>
> Key: PDFBOX-3551
> URL: https://issues.apache.org/jira/browse/PDFBOX-3551
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.3
> Environment: java
> Reporter: acker apple
> Labels: CLI, Decrypt, Decrypt.java, keyStore
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> This is about the Decrypt.java CLI wrapper fails when using certificates.
> Plain and simple. The following file just simply doesn't allow for more than
> one CLI argument: tools/src/main/java/org/apache/pdfbox/tools/Decrypt.java
> WHEN, I supply the argument keyStore and password, the usage documentation is
> thrown.
> WHEN, I hack the Decrypt.java CLI wrapper in tools, and allow the password
> AND keyStore arguments to BOTH be present, the decrypt works.
> The command I am trying to run:
> java -jar pdfbox-app-2.0.3.jar Decrypt -password password -keyStore
> keystore.p12 encrypted.pdf decrypted.pdf
> PDFBox CLI docs for decrypt WHERE clearly password AND keyStore need to be
> used together: http://pdfbox.apache.org/2.0/commandline.html#decrypt
> IN CLOSING, instead of fighting my case that the CLI Decrypt method is NOT
> working, I am choosing to keep it simple by stating fact that ONLY ONE
> argument is allowed OTHERWISE the usage docs are thrown.
> Thank you kindly. I have been able to rebuild the jar files with my own fix
> by using Maven to re-jar. I absolutely sure I am generating proper certs and
> p12 keyStore files and again I am successfully encrypting/decrypting with my
> update pdfbox.jar file
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]