directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srikanth Veeramachaneni" <srika...@veeramachaneni.com>
Subject Re: [ApacheDS] [MINA] SSL filter woes
Date Mon, 08 Jan 2007 22:59:46 GMT
Forgot to mention that the key manager algorithm name supported by IBM
JDK 1.4.2 is "IbmX509". This information can generally be found in the
file "jre/lib/security/java.security" file with the property name
"ssl.KeyManagerFactory.algorithm"

-Srikanth

On 1/8/07, Srikanth Veeramachaneni <srikanth@veeramachaneni.com> wrote:
> Since you got this error, I am assuming that the algorithm while
> creating the key manager factory is hardcoded which makes it dependent
> on the JVM. You can instead create the key manager factory as below to
> avoid this.
>
> KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory
>                                 .getDefaultAlgorithm());
>
> This basically uses the default algorithm specified in the Java
> security properties. This approach has worked for me using Sun and IBM
> jdks.
>
> thanks,
> Srikanth
>
> On 1/8/07, Alex Karasulu <akarasulu@apache.org> wrote:
> > Trustin,
> >
> > I got the following error on my mac ppc running Ubuntu which only has
> > the IBM jvm as an option.
> >
> >
> > akarasulu@mac:~/trunks/apacheds/server-ssl$ cat
> > target/surefire-reports/org.apache.directory.server.ssl.LdapsITest.txt
> > -------------------------------------------------------------------------------
> > Test set: org.apache.directory.server.ssl.LdapsITest
> > -------------------------------------------------------------------------------
> > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 14.486
> > sec <<< FAILURE!
> > testSetUpTearDown(org.apache.directory.server.ssl.LdapsITest)  Time
> > elapsed: 14.241 sec  <<< ERROR!
> > javax.naming.NamingException: Failed to create a SSL context. [Root
> > exception is java.security.NoSuchAlgorithmException: SunX509
> > KeyManagerFactory not available]
> >
> >
> > Is there any way we can use an alternative class in the IBM JDK and
> > detect the JDK to swap these classes based on the jvm system property?
> >
> > Alex
> >
> >
> >
>

Mime
View raw message