[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iaik-jce] Decrypt data in PKCS12 file


When you export your certificate with Netscape Communicator 4.5,
you get a "certif.p12" file.

I must read this file and extract the private key and the certificate
from it.

I managed to read part of the file. It contains 2 Authenticatedsafe.

Authenticatedsafe Nr 0 is unencrypted.
It contains 1 SafeBag, type PCKS8ShroudedKeyBag. I suppose it is the
private key.
It is encrypted with PbeWithSHAAnd3-KeyTripleDES-CBC algorithm.

I know the password associated with the private key.

Authenticatedsafe Nr 1 is encrypted with PbeWithSHAAnd40BitRC2-CBC.
So I can't read its content. Nevertheless I suppose it is the

How can I extract the PrivateKey and the Certificate in order to be able
encrypt, decrypt and sign mails with them?




   Otjacques Benoît

   162a, Av. de la Faïencerie
   L-1511 Luxembourg.

   Tel. +352-47.02.61-373.
   Fax  +352-47.02.64.

   "Il n'a y pas de vent favorable
    pour celui qui ne sait pas où il va."


Mailinglist-archive at http://jcewww.iaik.tu-graz.ac.at/mailarchive/iaik-jce/maillist.html

To unsubscribe send an email to listserv@iaik.tu-graz.ac.at with the folowing content: UNSUBSCRIBE iaik-jce