mirror of https://github.com/apache/jclouds.git
JCLOUDS-1528 - Use TLS instead of SSL in SSLContext.getInstance (#55)
This commit is contained in:
parent
18da28af9f
commit
3a338da682
|
@ -79,7 +79,7 @@ public class SSLModule extends AbstractModule {
|
|||
@Inject
|
||||
UntrustedSSLContextSupplier(TrustAllCerts trustAllCerts) {
|
||||
try {
|
||||
SSLContext sslContext = SSLContext.getInstance("SSL");
|
||||
SSLContext sslContext = SSLContext.getInstance("TLS");
|
||||
sslContext.init(null, new TrustManager[] { trustAllCerts }, new SecureRandom());
|
||||
this.sslContext = sslContext;
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue