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

Re: [iaik-jce] PKCS#12 and Microsoft Internet Explorer



No! But a short time ago I got a mail regarding the same problem (same error
message) you described, and it had been solved when replacing iaik_jce.jar
with  iaik_jce_full.jar. I dontīt know what you are using. However, RSA keys
only can be handled with iaik_jce_full.jar.
If you are already using iaik_jce_full.jar, there must be another problem I
currently donīt know of. If you have exported a PKCS#12 file containing not
a RSA key from IE. 5.0 please let me know.

Dieter Bratko

----- Original Message -----
From: Aaron McKenzie-Brown <Aaron@iLumin.com>
To: <iaik-jce@iaik.tu-graz.ac.at>
Sent: Thursday, July 08, 1999 5:27 PM
Subject: RE: [iaik-jce] PKCS#12 and Microsoft Internet Explorer


> Do all PKCS#12 contain RSA keys?
>
> -----Original Message-----
> From: Dieter Bratko [mailto:Dieter.Bratko@iaik.at]
> Sent: Thursday, July 08, 1999 9:14 AM
> To: Aaron McKenzie-Brown; iaik-jce@iaik.tu-graz.ac.at
> Subject: Re: [iaik-jce] PKCS#12 and Microsoft Internet Explorer
>
>
> Maybe you are using iaik_jce.jar instead of iaik_jce_full.jar.
> iaik_jce.jar contains no RSA implementations, and so the RSA key cannot be
> recovered.
>
> Dieter Bratko
> ----- Original Message -----
> From: Aaron McKenzie-Brown <Aaron@iLumin.com>
> To: <iaik-jce@iaik.tu-graz.ac.at>
> Sent: Thursday, July 08, 1999 4:39 PM
> Subject: [iaik-jce] PKCS#12 and Microsoft Internet Explorer
>
>
> > I am evaluating IAIK-JCE for my company and am having a little problem
> > beginning.  After exporting a public key from IE 5.0 to a PKCS#12 file,
I
> am
> > trying to use IAIK-JCE to get to the public key.  Yet, every time I try,
I
> > get a "iaik.pkcs.PKCSException: Unable to decrypt PrivateKey!"  The
> password
> > is correct.  Here is the code:
> >
> > import iaik.pkcs.pkcs12.*;
> > import java.io.*;
> > import java.applet.Applet;
> > import java.awt.*;
> > import iaik.java.security.*;
> > import iaik.security.provider.IAIK;
> >
> > public class Test extends Applet
> > {
> > TextField filename = new TextField("C:\\My Documents\\cert2.pfx",
> > 20);
> > TextField password = new TextField("p", 20);
> > Button doIt = new Button("Do it");
> > TextField output = new TextField(20);
> >
> > public void start()
> > {
> > password.setEchoChar('*');
> > add(filename);
> > add(password);
> > add(doIt);
> > add(output);
> > Security.insertProviderAt(new IAIK (), 1);
> > IAIK.addAsProvider(true);
> > }
> >
> > public boolean action(Event e, Object o)
> > {
> > String caption = (String)o;
> > if(e.target instanceof Button)
> > if(caption == "Do it")
> > {
> > output.setText(openPKCS12());
> > }
> > return true;
> > }
> >
> > private String openPKCS12()
> > {
> > try{
> > PKCS12 pfx = new PKCS12(new
> > FileInputStream(filename.getText()));
> > PrivateKey pk;
> > pfx.decrypt(password.getText().toCharArray());
> > return "Yes";
> > }
> > catch(Exception e){
> > return e.toString();
> > }
> > }
> > }
> >
> > Has anyone else ran into this problem?
> >
> > Aaron McKenzie-Brown
> > Group Leader, iLumin Corp.
> > --
> > 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
>
>

--
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