cfpdf encrypt AES_256R5 The password provided is either wrong or does not have sufficient permission to perform this action.

Explorer ,
Jul 18, 2017 Jul 18, 2017

Copy link to clipboard

Copied

I can't get cfpdf encrypt AES_256R5 to work it returns the following

An error occurred during PROTECT operation in <CFPDF>.

Error: The password provided is either wrong or does not have sufficient permission to perform this action.

even if I use an AES generated key as newuserpassword it still shows this error.

encrypt="AES_128" works, but I can't use the new  AES_256R5 or AES_256R6

Any idea on what I'm doing wrong? I've tried newownerpassword and setting permissions, same result.

<cfpdf action="read" name="mypdf" source="C:\APPS\\cfpdf\ThePDF.pdf" />

<cfpdf

action="protect"

source="mypdf"

encrypt="AES_256R6"

overwrite="yes"

newuserpassword="re5XBKe+rBriu4UAQgvm7A=="

destination="C:\APPS\\cfpdf\newPDF.pdf" />

Views

409

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Explorer , Jul 18, 2017 Jul 18, 2017
Answered my own question, if I could have only read the thread dump info ahead of time.com.adobe.internal.pdftoolkit.core.exceptions.PDFSecurityConfigurationException: Cannot init cipher for R5 permissions. Invalid KeyThis is because coldFusion doesn't come with Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction PolicyYou have to download this and copy the files to your jre/lib/security folder then restart your ColdFusion instance.

Likes

Translate

Translate
Explorer ,
Jul 18, 2017 Jul 18, 2017

Copy link to clipboard

Copied

LATEST

Answered my own question, if I could have only read the thread dump info ahead of time.

com.adobe.internal.pdftoolkit.core.exceptions.PDFSecurityConfigurationException: Cannot init cipher for R5 permissions. Invalid Key

This is because coldFusion doesn't come with

Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy

You have to download this and copy the files to your jre/lib/security folder then restart your ColdFusion instance.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines