// setup trustStore
File TrustMaterial = new File(trustStoreFilePath);
char[] trustStorePasswordPasswordInCharArray = trustStorePassword
.toCharArray();
TrustMaterial trustMaterial = new TrustMaterial(TrustMaterial,
trustStorePasswordPasswordInCharArray);
httpSecureProtocol.setKeyMaterial(keyMaterial);
httpSecureProtocol.setTrustMaterial(trustMaterial);
httpSecureProtocol.setCheckCRL(true);