> What PEM files did you try: client.pem in the apps directory is one which
> should work. The program is expecting a certificate followed by its
> corresponding private key.
 
Thank you for the reply.  I'm happy there's someone here that can help a beginner.
I did just try the client.pem and I got the same errors:
 
Error creating PKCS#12 structure
5356:error:0906D06C:PEM routines:PEM_read_bio:no start line:.\crypto\pem\pem_lib
.c:637:Expecting: ANY PRIVATE KEY
5356:error:0906D06C:PEM routines:PEM_read_bio:no start line:.\crypto\pem\pem_lib
.c:637:Expecting: CERTIFICATE
5356:error:23069068:PKCS12 routines:PKCS12_create:invalid null argument:.\crypto
\pkcs12\p12_crt.c:85:
A few things to note:
I'm building and running under windows XP, and have followed the instructions in INSTALL.W32.
I also made a change recommended to get rid of patent-related code:
:\> perl Configure no-rc5 no-idea VC-WIN32
 
After the build, the tests all come out as OK. 
Also, as I couldn't find the make file for the pkwrite program, I've built it myself within the GUI for Visual Studio.
Finally, I had to remove all the compiler options (as I mentioned before) otherwise any calls to the openssl libraries seem to caus ea crash.  This was mentioned in a thread from months ago, I think.
 
Thanks again for the help.
Kevin Fries
 
"Dr. Stephen Henson" <[EMAIL PROTECTED]> wrote:
On Fri, Oct 22, 2004, Kevin Fries wrote:

> I'm hoping someone has a clue for me. I can't get the example pkwrite to work correctly, even given a PEM from elsewhere in the distribution.
> I'm compiling with Visual C 6.0 with SP 6, and I removed the compiler options (a tip I picked up elsewhere in this list to prevent a crash.)
> Having compiled openssl to produce the DLL's, and compiling pkwrite as well, it always gives me the error:
>
> Error creating PKCS#12 structure
> 2380:error:0906D06C:PEM routines:PEM_read_bio:no start line:.\crypto\pem\pem_lib.c:637:Expecting: ANY PRIVATE KEY
> 2380:error:0906D06C:PEM routines:PEM_read_bio:no start line:.\crypto\pem\pem_lib.c:637:Expecting: CERTIFICATE
> 2380:error:23069068:PKCS12 routines:PKCS12_create:invalid null argument:.\crypto\pkcs12\p12_crt.c:85:
>
> It seems to n ot be able to parse the PEM to locate the start lines. Can you think of a reason this might have gone wrong for me? The openssl.exe itself seems to work fine.
>

What PEM files did you try: client.pem in the apps directory is one which
should work. The program is expecting a certificate followed by its
corresponding private key.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]


Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

Reply via email to