Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
0004630: TransportManagerFactory needs to call
SelfSignedX509TrustManager constructor with actual trust store used
instead of null
  • Loading branch information
Philip Marzullo committed Nov 6, 2020
1 parent df963fa commit 25d1b41
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -22,6 +22,7 @@

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.security.KeyStore;
Expand Down Expand Up @@ -71,6 +72,9 @@ public KeyStore getTrustStore() {
ks.load(is, getTrustStorePassword().toCharArray());
is.close();
return ks;
} catch (FileNotFoundException e) {
log.warn("Unable to open " + getTrustStoreFilename() + ", returning null");
return null;
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
Expand Down

0 comments on commit 25d1b41

Please sign in to comment.