Using the provider string when creating the SSLContext in case of no
keystore.
This commit is contained in:
parent
b1f1ebcc72
commit
3abfbe26b3
|
@ -258,7 +258,7 @@ public class SslContextFactory extends AbstractLifeCycle
|
|||
}
|
||||
|
||||
SecureRandom secureRandom = (_secureRandomAlgorithm == null)?null:SecureRandom.getInstance(_secureRandomAlgorithm);
|
||||
SSLContext context = SSLContext.getInstance(_sslProtocol);
|
||||
SSLContext context = _sslProvider == null ? SSLContext.getInstance(_sslProtocol) : SSLContext.getInstance(_sslProtocol, _sslProvider);
|
||||
context.init(null, trust_managers, secureRandom);
|
||||
_context = context;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue