Skip to content

Commit

Permalink
remove trustStorePassword from logs
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaturli committed Feb 6, 2015
1 parent 7655769 commit a302827
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,10 @@ protected VcloudClient newVcloudClient(String endpoint, String identity, String

// Performing Certificate Validation
if (Strings.isNonBlank(trustStorePassword)) {
LOG.debug("Registering HTTPS scheme using trustStore ='{}' with trustStorePassword = '{}'", trustStore, trustStorePassword);
LOG.debug("Registering HTTPS scheme using trustStore ='{}'", trustStore);
vcloudClient.registerScheme("https", 443, CustomSSLSocketFactory.getInstance(trustStore, trustStorePassword));
} else {
LOG.warn("Registering HTTPS scheme using FakeSSLSocketFactory, as trustStore ='{}' with trustorePassword = '{}' are not valid.",
trustStore, Strings.isBlank(trustStorePassword) ? "empty" : trustStorePassword);
LOG.warn("Registering HTTPS scheme using FakeSSLSocketFactory, as trustStore ='{}' and/or trustStorePassword are not valid.", trustStore);
vcloudClient.registerScheme("https", 443, FakeSSLSocketFactory.getInstance());
}

Expand Down

0 comments on commit a302827

Please sign in to comment.