You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2016/11/02 14:54:58 UTC

[jira] [Assigned] (PDFBOX-3551) CLI Decrypt broken, only allows 1 argument

     [ https://issues.apache.org/jira/browse/PDFBOX-3551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maruan Sahyoun reassigned PDFBOX-3551:
--------------------------------------

    Assignee: Maruan Sahyoun

> 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: Utilities
>    Affects Versions: 2.0.3
>         Environment: java
>            Reporter: acker apple
>            Assignee: Maruan Sahyoun
>              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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org