Hah.  Sure enough, doing the same thing here fixes my problem.  But, I was trying to compile against the OpenSSL.DLL instead of the lib.  I wonder it that's what broke my environment.  What I'm trying to build, in the end, is a DLL that can be called with Java JNI to perform the same task as pkwrite. 
 
Thanks for pointing me the right way.  Are you aware of any pitfalls or tips for getting what I want? 
 
Thanks again
 
"Dr. Stephen Henson" <[EMAIL PROTECTED]> wrote:
On Mon, Oct 25, 2004, Kevin Fries wrote:

> Yep. I used:
> > .\pkwrite client.pem 1234567 nicename client.p12
>
> And I get:
> Error creating PKCS#12 structure
> 2260:error:0906D06C:PEM routines:PEM_read_bio:no start line:.\crypto\pem\pem_lib
> .c:637:Expecting: ANY PRIVATE KEY
> 2260:error:0906D06C:PEM routines:PEM_read_bio:no start line:.\crypto\pem\pem_lib
> .c:637:Expecting: CERTIFICATE
> 2260:error:23069068:PKCS12 routines:PKCS12_create:invalid null argument:.\crypto
> \pkcs12\p12_crt.c:85:
>
> I do wish the answer was that wasy, though. ;-)

Well I've just compiled pkwrite.c on the command line for Win32 and had no
problems. From a VC++ environment in the pkwrite.c directory I did:

cl -MD -I..\..\inc32 pkwrite.c ..\..\out32dll\libeay32.lib

Is client.pem corrupted in some way? It should contain lines:

-----BEGIN CERTIFICATE-----

and

---BEGIN RSA 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!?
Read only the mail you want - Yahoo! Mail SpamGuard.

Reply via email to