<html><div style='background-color:'><DIV>
<P>No, I already installed the Sun Security provider (JSSE) - didn't fix the problem. Any other suggestions?<BR><BR></P></DIV>
<DIV></DIV>>From: Casey Marshall <RSDIO@METASTATIC.ORG>
<DIV></DIV>>To: "Graham Jenkins" <GRAHJENK@HOTMAIL.COM>
<DIV></DIV>>CC: kaffe@kaffe.org
<DIV></DIV>>Subject: Re: [kaffe] KeyStore Access Problem (Kaffe 1.1.2 on RdeHat 9.0)
<DIV></DIV>>Date: Tue, 21 Oct 2003 04:56:30 -0700
<DIV></DIV>>
<DIV></DIV>>-----BEGIN PGP SIGNED MESSAGE-----
<DIV></DIV>>Hash: SHA1
<DIV></DIV>>
<DIV></DIV>> >>>>> "Graham" == Graham Jenkins <GRAHJENK@HOTMAIL.COM>writes:
<DIV></DIV>>
<DIV></DIV>>Graham> Not sure what I'm doing wrong here. My program contains the
<DIV></DIV>>Graham> following lines:
<DIV></DIV>>
<DIV></DIV>>Graham> System.err.println("Defining keyfile .."); File
<DIV></DIV>>Graham> keyfile=new File(System.getProperty("user.home"),".keystore");
<DIV></DIV>>Graham> System.err.println("Getting keystore instance .."); KeyStore
<DIV></DIV>>Graham> keystore=KeyStore.getInstance(KeyStore.getDefaultType());
<DIV></DIV>>Graham> System.err.println("Loading record from keystore ..");
<DIV></DIV>>Graham> keystore.load(new BufferedInputStream(new
<DIV></DIV>>Graham> FileInputStream(keyfile)), ..
<DIV></DIV>>
<DIV></DIV>>Graham> And it works OK with j2se-1.4.2_01. But under kaffe, it dies
<DIV></DIV>>Graham> with the message: java.security.KeyStoreException: No such
<DIV></DIV>>Graham> type
<DIV></DIV>>
<DIV></DIV>>Graham> So .. what am I doing wrong, and how do I get around it?
<DIV></DIV>>
<DIV></DIV>>KeyStore.getDefaultType() is probably returning "JKS", and there is no
<DIV></DIV>>implementation of that (or any) KeyStore algorithm in Kaffe. You can
<DIV></DIV>>get around this by installing Sun's security provider, for now.
<DIV></DIV>>
<DIV></DIV>>But: it may be of interest to the folks here that I reverse engineered
<DIV></DIV>>the JKS file format/algorithms a while back, and have posted an
<DIV></DIV>>example implementation here:
<DIV></DIV>>
<DIV></DIV>> <HTTP: JKS.java source metastatic.org>
<DIV></DIV>>
<DIV></DIV>>And the documentation comments contain an English description of the
<DIV></DIV>>format and algorithms, rendered here:
<DIV></DIV>>
<DIV></DIV>> <HTTP: source metastatic.org JKS.html>
<DIV></DIV>>
<DIV></DIV>>The FSF decided that they couldn't use it in their official software
<DIV></DIV>>due to the shaky legality of RE. That doesn't mean others can't find
<DIV></DIV>>it useful, however.
<DIV></DIV>>
<DIV></DIV>>Also I am developing a new KeyStore format for GNU Crypto; the draft
<DIV></DIV>>of this format is here:
<DIV></DIV>>
<DIV></DIV>> <HTTP: draft-keyring.html gnu-crypto software www.gnu.org>
<DIV></DIV>>
<DIV></DIV>>Which may be of more interest than a proprietary toy algorithm like
<DIV></DIV>>JKS.
<DIV></DIV>>
<DIV></DIV>>- --
<DIV></DIV>>Casey Marshall || rsdio@metastatic.org
<DIV></DIV>>-----BEGIN PGP SIGNATURE-----
<DIV></DIV>>Version: GnuPG v1.2.1 (GNU/Linux)
<DIV></DIV>>Comment: Processed by Mailcrypt 3.5.7 <HTTP: mailcrypt.sourceforge.net />
<DIV></DIV>>
<DIV></DIV>>iD8DBQE/lR1mgAuWMgRGsWsRAknlAJ9mB3Du2ts7K4Gv1nbXMuSmlvqt1gCfcya5
<DIV></DIV>>zEOgaHsVGvNj+ozD1/CltA4=
<DIV></DIV>>=WM5+
<DIV></DIV>>-----END PGP SIGNATURE-----
<DIV></DIV>>
<DIV></DIV>>_______________________________________________
<DIV></DIV>>kaffe mailing list
<DIV></DIV>>kaffe@kaffe.org
<DIV></DIV>>http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
<DIV></DIV></div><br clear=all><hr>Chat via SMS. Simply send 'CHAT' to 1889918. 33c per message sent. Free to receive. <a href="http://g.msn.com/8HMAENAU/2728??PS="> More info here.</a> </html>