final SSLContext context) throws KeyManagementException {
if (!localConf.getAllowUnverifiedCertificates()) {
context.init(null, null, null);
} else {
// Use bogus trust all manager
context.init(null, new TrustManager[] { new TrustAllTrustManager() }, null);
}
}