java.security.InvalidKeyException: Illegal key size or default parameters

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via oracle.com by Unknown author

Install Java Cryptopraphic Extention for your JDK version

Solutions on the web

via incubator-pdfbox-users by Marison, 4 months ago
Illegal key size or default parameters
via pdfbox-users by Marison, 1 year ago
Illegal key size or default parameters
via pdfbox-users by Marison, 1 year ago
Illegal key size or default parameters
via Coderanch by Tuna Jen, 11 months ago
via logikdev.com by Unknown author, 1 year ago
via logikdev.com by Unknown author, 1 year ago
java.security.InvalidKeyException: Illegal key size or default parameters
at javax.crypto.Cipher.a(DashoA12275)
at javax.crypto.Cipher.a(DashoA12275)
at javax.crypto.Cipher.a(DashoA12275)
at javax.crypto.Cipher.init(DashoA12275)
at javax.crypto.Cipher.init(DashoA12275)
at org.apache.pdfbox.pdmodel.encryption.PublicKeySecurityHandler.computeRecipientInfo(PublicKeySecurityHandler.java:401)
at org.apache.pdfbox.pdmodel.encryption.PublicKeySecurityHandler.createDERForRecipient(PublicKeySecurityHandler.java:377)
at org.apache.pdfbox.pdmodel.encryption.PublicKeySecurityHandler.prepareDocumentForEncryption(PublicKeySecurityHandler.java:291)
at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1002)
at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:893)
at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:874)
at org.apache.pdfbox.Encrypt.encrypt(Encrypt.java:189)
at org.apache.pdfbox.Encrypt.main(Encrypt.java:53)

Users with the same issue

16 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.