forked from shaba/openuds
Added ssl cerfificate ignore by default
This commit is contained in:
parent
ea93e978eb
commit
cdd31fe812
@ -50,6 +50,7 @@ public class Util {
|
||||
|
||||
public static boolean download(String baseUrl, String id, String outputFileName, boolean ignoreCert)
|
||||
{
|
||||
// SSL Part got from sample at http://code.google.com/p/misc-utils/wiki/JavaHttpsUrl
|
||||
try {
|
||||
final TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user