Re: [iText-questions] PKCS#12 Certificate fails when executed from PHP exec

2011-08-09 Thread Petter Brox
El 09/08/2011, a las 13:54, 1T3XT BVBA escribió: > I'm 99% sure this isn't an iText or Java problem, but a permission problem. > For instance: setting a file to 777 is useless if the script doesn't have > access to its directory. You are of course totally right. When I put the certificate inside

Re: [iText-questions] PKCS#12 Certificate fails when executed from PHP exec

2011-08-09 Thread 1T3XT BVBA
On 9/08/2011 13:41, Petter Brox wrote: fails on the line "ks.load(newFileInputStream("/path/to/cert/certificate.p12"), "password".toCharArray());" when I try to execute the Jar using the PHP exec function I'm 99% sure this isn't an iText or Java problem, but a permission problem. For instance:

[iText-questions] PKCS#12 Certificate fails when executed from PHP exec

2011-08-09 Thread Petter Brox
Hello, I've made a simple jar to protect and sign PDFs where the signing part is copied from this example: http://itextpdf.sourceforge.net/howtosign.html#howtosign. It works great from the command-line (Debian), but fails on the line "ks.load(new FileInputStream("/path/to/cert/certificate.p12"