Hi All,

I am doing a 

c:\openssl\bin\openssl.exe x509 -req -CAkey c:\openssl\bin\ca.key
-CAcreateserial -CA c:\openssl\bin\ca.crt

from within my java program using Runtime.exec

I am streaming the CSR string from an html form to the inputstream of the
openssl
program.. But everytime I get the following error.

Loading 'screen' into random state - done ERROR>1692:error:0906D06C:PEM
routines:PEM_read_bio:no start line:.\crypto\pem\pem_lib.c:662:Expecting:
CERTIFICATE REQUEST ExitValue: 1

Now when I paste the same csr string in the command line of openssl x509
command then
it works and generates a certificate. It has everything at the correct
places.

I also tried inserting line breaks after each line of the csr string from my
java code
but nothing seems to work..Am I missing something..should I add some extra
characters to
make this work.

thanks,


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to