You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Stimpmania <et...@web.de> on 2004/11/22 18:59:28 UTC
PDF encryption
Hello,
i'm using fop 0.20.5 on windows xp sp2 with sdk 1.4.2_06 and need help with the encryption-feature.
I'm always getting the message "Cannot find any provider supporting RC4", as described on http://xml.apache.org/fop/pdfencryption.html.
What I have done:
- downloaded the "bcprov-jdk14-125.jar" from bouncycastle.org
- copied it into "C:\j2sdk1.4.2_06\jre\lib\ext"
- edited the file "java.security" and added the line "security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider"
- added "C:\j2sdk1.4.2_06\jre\lib\ext\bcprov-jdk14-125.jar" to the classpath
- build fop, getting the message "prepare-jce:
[echo] JCE is present. Installing PDF encryption support.
[copy] Copying 1 file to C:\Programme\fop\build\src"
When i start fop via the command line with "fop -nocopy -xml input.xml -xsl stylesheet.xsl -pdf output.pdf"
i get the error-message mentioned above -> "Cannot find any provider supporting RC4"
Do you have an idea what i've done wrong. i've spend about 6 hours now without sucess.
Please Help
Thanx
Stimpmania
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: PDF encryption
Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: ettention@web.de [mailto:ettention@web.de]
>
Hi,
> What I have done:
>
> - downloaded the "bcprov-jdk14-125.jar" from bouncycastle.org
> - copied it into "C:\j2sdk1.4.2_06\jre\lib\ext"
> - edited the file "java.security" and added the line
> "security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider"
> - added "C:\j2sdk1.4.2_06\jre\lib\ext\bcprov-jdk14-125.jar" to
> the classpath
> - build fop, getting the message "prepare-jce:
This should indeed be enough, but will only work if that is the JVM actually
used when running FOP... make sure this is verified.
Another possibility I see is that you may need this:
http://java.sun.com/products/jce/index-14.html#UnlimitedDownload
Hope this helps!
Greetz,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org