Author: jaz
Date: Thu May 3 14:55:48 2007
New Revision: 534996
URL:
http://svn.apache.org/viewvc?view=rev&rev=534996Log:
set secure random
Modified:
ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/SSLUtil.java
Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/SSLUtil.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/SSLUtil.java?view=diff&rev=534996&r1=534995&r2=534996==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/SSLUtil.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/SSLUtil.java Thu May 3 14:55:48 2007
@@ -161,7 +161,6 @@
}
public static SSLSocketFactory getSSLSocketFactory() throws IOException, GeneralSecurityException, GenericConfigException {
-
return getSSLSocketFactory(null);
}
@@ -170,7 +169,7 @@
KeyManager[] km = SSLUtil.getKeyManagers(ks, password, alias);
SSLContext context = SSLContext.getInstance("SSL");
- context.init(km, tm, null);
+ context.init(km, tm, new SecureRandom());
return context.getServerSocketFactory();
}
@@ -179,7 +178,7 @@
KeyManager[] km = SSLUtil.getKeyManagers(alias);
SSLContext context = SSLContext.getInstance("SSL");
- context.init(km, tm, null);
+ context.init(km, tm, new SecureRandom());
return context.getServerSocketFactory();
}