Skip to content

Commit

Permalink
0004630: TransportManagerFactory needs to call
Browse files Browse the repository at this point in the history
SelfSignedX509TrustManager constructor with actual trust store used
instead of null
  • Loading branch information
Philip Marzullo committed Nov 6, 2020
1 parent fd931b4 commit 7740830
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -167,9 +167,9 @@ private static void initSelfSignedSocketFactory(boolean enableHttps2)
if (enableHttps2) {
new ConscryptHelper().checkProviderInstalled();
}
X509TrustManager trustManager = new SelfSignedX509TrustManager(null);
SSLContext context = SSLContext.getInstance("TLS");
ISecurityService securityService = SecurityServiceFactory.create();
X509TrustManager trustManager = new SelfSignedX509TrustManager(securityService.getTrustStore());
KeyManager[] keyManagers = null;
try {
keyManagers = securityService.getKeyManagerFactory().getKeyManagers();
Expand Down

0 comments on commit 7740830

Please sign in to comment.