[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [iaik-jce] NetscapeP12.class & new JCE
You can extract certificate even now. You can try some thing like this
char[] password;
InputStream in = new FileInputStream(".p12file");
PKCS12 pk12 = new PKCS12(in);
pk12.decrypt(password);
if(pk12.verify(password)
X509Certificate[] certChain =
CertificateBag.getCertificates(pk12.getCertificateBags());
You will get all the certificates in that into certChain.
Try something like above.
On Tue, 18 May 1999 david.sanchez@catalanaocci.es wrote:
>
>
> In the previous version of the JCE, the NetscapeP12 class allows to extract
> the X509 Certificate of a .p12 file. In the new version, 2.5, this class do not
> exist, is posible to extract the X509 certificates from a .p12 file without this
> class?. I try to use the PKCS12 class but it seems that not is possible.
>
> Somebody can help me?
>
> Thanks
>
> David
>
>
> --
> 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
>
>
--
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