Krishna Prasad wrote:
> Hi
> 
> A PKCS#12 file will have to contain the private key,you cannot have only
> the
> certificate in PKCS#12 format.

Yes. Maybe you want a PKCS7-File? This is supported by
many applications, too. Using OpenSSL PKCS7 files are
generated a bit counterintuitive: You use the command
"openssl crl2pkcs7", add some certificates with the
argument "-certfile" and tell it not to put a CRL in
there with "-nocrl"... :-)

openssl crl2pkcs7 -outform DER -out mycerts.p7 -certfile mycert.pem

Regards, Olaf

-- 

Dipl.Inform. Olaf Gellert                   INTRUSION-LAB.NET
Senior Researcher,                      www.intrusion-lab.net
PKI - and IDS - Services        [EMAIL PROTECTED]

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

Reply via email to