directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r709814 - /directory/apacheds/branches/apacheds-mina2/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ssl/LdapsInitializer.java
Date Sun, 02 Nov 2008 00:37:27 GMT
Author: elecharny
Date: Sat Nov  1 17:37:27 2008
New Revision: 709814

URL: http://svn.apache.org/viewvc?rev=709814&view=rev
Log:
Fixed the bad SSL algorithm value which was set to SunX509.

Modified:
    directory/apacheds/branches/apacheds-mina2/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ssl/LdapsInitializer.java

Modified: directory/apacheds/branches/apacheds-mina2/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ssl/LdapsInitializer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-mina2/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ssl/LdapsInitializer.java?rev=709814&r1=709813&r2=709814&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-mina2/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ssl/LdapsInitializer.java
(original)
+++ directory/apacheds/branches/apacheds-mina2/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ssl/LdapsInitializer.java
Sat Nov  1 17:37:27 2008
@@ -51,10 +51,12 @@
         {
             // Set up key manager factory to use our key store
             String algorithm = Security.getProperty( "ssl.KeyManagerFactory.algorithm" );
+
             if ( algorithm == null )
             {
-                algorithm = "SunX509";
+                algorithm = KeyManagerFactory.getDefaultAlgorithm();
             }
+            
             KeyManagerFactory kmf = KeyManagerFactory.getInstance( algorithm );
             kmf.init( ks, null );
 



Mime
View raw message