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
|
@Inject
|
||||||
UntrustedSSLContextSupplier(TrustAllCerts trustAllCerts) {
|
UntrustedSSLContextSupplier(TrustAllCerts trustAllCerts) {
|
||||||
try {
|
try {
|
||||||
SSLContext sslContext = SSLContext.getInstance("SSL");
|
SSLContext sslContext = SSLContext.getInstance("TLS");
|
||||||
sslContext.init(null, new TrustManager[] { trustAllCerts }, new SecureRandom());
|
sslContext.init(null, new TrustManager[] { trustAllCerts }, new SecureRandom());
|
||||||
this.sslContext = sslContext;
|
this.sslContext = sslContext;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue