how to extract certificates from IE for digital signature

hi

how to extract certificates from the cert store provided by Internet Explorer 6.0 and use it to read & verify the digital signatures present in the pc.this is needed in my web based application n i have no idea!!!

pls help me out

i have studied a lot about all JCA n JCE but the extraction part still baffles me!!!

my application will be java based so i can make an applet/ servlet/ jsp

drop your ideas as soon as u get time as i am stuck in the initial phase itself

:(

priya_16

[534 byte] By [priya_16a] at [2007-11-26 14:48:10]
# 1

hi

i've the same problem. i've found this solution, but you need download a JCE Provider that allow you to read the explorer certificate store.

You can try this one: https://download.assembla.se/jceprovider/

and the code:

import se.assembla.*;

public class Listcerts {

public static void list() throws Exception{

java.security.Security.insertProviderAt(new se.assembla.jce.provider.ms.MSProvider(), 2);

KeyStore ks = KeyStore.getInstance("MSKS","assembla");

ks.load(null,null);

X509Certificate cert=null;

String alias=null;

int count=0;

for (java.util.Enumeration e=ks.aliases();e.hasMoreElements();){

alias=(String)e.nextElement();

cert=(X509Certificate)ks.getCertificate(alias);

System.out.println("\n Certificado alias"+alias+":");

System.out.println(cert);

count++;

}

System.out.println ("NUM CERTS="+count);

}

now, i need the same solution for Firefox browser XP

good luck

Message was edited by:

meteko

metekoa at 2007-7-8 8:35:56 > top of Java-index,Security,Cryptography...
# 2

**** DUP answer for another thread ****

Do you mean reading a certificate from the Windows native keystore?

This article may help. It mentions the MSCAPI type of KeyStore, there is a sample program that opens the MY keystore and retrieve a certificate from it.

http://java.sun.com/developer/technicalArticles/J2SE/security/index.html#1

Hope this helps.

wangwja at 2007-7-8 8:35:56 > top of Java-index,Security,Cryptography...