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 not 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]

Reply via email to