Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5027

Protect/Encrypt PDF with multiple certificates on command line

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.21
    • Fix Version/s: 2.0.22, 3.0.0 PDFBox
    • Component/s: Crypto
    • Labels:
      None

      Description

      Hi,

      PDFBox has (obviously) the ability to protect a file with several certificates by adding teh recipient's certificates one after another:

       

       

      //Class PublicKeyProtectionPolicy has 
      
      public void addRecipient(PublicKeyRecipient recipient)
          {        recipients.add(recipient);    }
      

      For the commandline tool functionality, it just offers "-cert" with the option to add a SINGLE certificate. I expect that in most serious use cases actually two certificates are used to protect the document (the actual recipient and the creator who wants to be able still to open the document as well).

       

      I propose to extend the command line functionality (Encrypt.java) by having an iteration through several cert files, e.g. separated by special character.

       

      Thanks.

       

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              jakatal jakatal

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 6h
                6h
                Remaining:
                Remaining Estimate - 6h
                6h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Issue deployment