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

java.io.IOException: java.security.InvalidKeyException: Illegal key size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0.4
    • None
    • Crypto, PDModel
    • None
    • AIX - Websphere - JDK 6

    Description

      Dear,

      When I try to write PDF document application raises following exception.

      java.io.IOException: java.security.InvalidKeyException: Illegal key size
      --at org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.prepareEncryptionDictRev6(StandardSecurityHandler.java:486)
      --at org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.prepareDocumentForEncryption(StandardSecurityHandler.java:390)
      --at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1305)
      --at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1254)
      --at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1232)

      Could you please help me on that issue?

      Here under some details :

      java version "1.6.0"
      Java(TM) SE Runtime Environment (build pap6460sr16fp7ifix-20150930_02(SR16 FP7+IV77565))
      IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460sr16fp7-20150701_255724 (JIT enabled, AOT enabled)

      Note : Java Cryptography API Unlimited Policy file has been installed.

      Thanks
      gurcan

      Attachments

        Activity

          People

            Unassigned Unassigned
            gurcan_t@yahoo.com Gurcan T
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: