I got the same problem with version 0.9.4. 'apps/x509.c' tries to read
'client.csr' as a certificate, not a certificate request. But, 'client.csr'
is a certificate request. I believe the cmd should be:

"openssl x509 -req -in client.csr ..."

Meanwhile, I got another question. Is it possible to generate a certificate
with "Global Server ID" myself, not from Versign or other CA?

Thanks.
Yunhong

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Biren Patel
Sent: Wednesday, September 08, 1999 4:22 AM
To: [EMAIL PROTECTED]
Subject: Re: Confused




I seem to have problem generating the client certificate. I tried step 2b
below
and I get error. I tried various ways and it fails. Here is the error I get.
Any help will be greatly appreciated.

[root@ns2 /opt/SSL/misc] openssl x509 -in client.csr -out client.cert
-CA ourca.cert -CAkey private.key -CAcreateserial -days 1024

unable to load certificate 6053:error:0906D06C:PEM routines:PEM_read_bio:no
start line:pem_lib.c:610:
[root@ns2 /opt/SSL/misc]

I also tried direction from the pkcs12 home site and it fails at
signing the client request. Please help. Going crazy.

Dr Stephen Henson writes:
 > Hector Jimenez Pensado wrote:
 > >
 > > Hi,
 > >
 > > I cannot get MSIE 5 to add a personal certificate
 > > that I added with openssl:
 > >
 > > 1. Generated a CA with:
 > > a) The private key:
 > > openssl genrsa -des3 -out private.key 1024
 > > b) The self-signed certificate:
 > > openssl req -x509 -new -key private.key -out ourca.cert
 > >
 > > 2. Generate client requests with:
 > > a) Generate the client request and private key:
 > > openssl req -new -outform PEM > client.csr
 > > b) Sign that request with our CA
 > > openssl x509 -in client.csr -out client.cert -CA ourca.cert -CAkey
 > > private.key
 > >              -CAcreateserial -days 30
 > > c) Generate a PKCS12 certificate:
 > > openssl pkcs12 -export -in client.cert -out client.p12 -inkey
privkey.pem
 > >
 > > So, if I do a double-click in the file client.cert in my win95
 > > I get asked where to put the certificate, I tell Personal, I get
 > > a succesfull import message but the certificate never shows in the
 > > list.
 > > I do the same with ourca.cert and it gets imported ok in the
 > > Trusted Certificate lists, that works ok.
 > >
 > > If I import the client.p12, I do get prompted for the password but
 > > then I get an invalid format error.
 > >
 > > What am I missing, I only want to be able to:
 > >
 > > 1. Generate my CA which I think I have done correctly (please
 > > advice if my procedure is wrong, and a little elaborate
 > > response other than: "use CA.pl").
 > > 1a)Don�t want to be asked for the CA password!
 > >
 > > 2.Generate client certificates which I can add to MSIE.
 > >
 >
 > You need to import the '.p12' file, if you give it the extension ".pfx"
 > then you should be able to double click on it with IE5. You can add the
 > option:
 > -certfile ourca.cert
 > to the PKCS#12 step and it should add your CA automatically with IE5.
 >
 > You should also note that the PKCS#12 file (.p12 file) is a binary file
 > so will be corrupted if it is transferred in text mode.
 >
 > Steve.
 > --
 > Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
 > Personal Email: [EMAIL PROTECTED]
 > Senior crypto engineer, Celo Communications: http://www.celocom.com/
 > Core developer of the   OpenSSL project: http://www.openssl.org/
 > Business Email: [EMAIL PROTECTED] PGP key: via homepage.
 >
 > ______________________________________________________________________
 > OpenSSL Project                                 http://www.openssl.org
 > User Support Mailing List                    [EMAIL PROTECTED]
 > Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

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

Reply via email to