Changeset 13679 in josm for trunk/src/org


Ignore:
Timestamp:
2018-04-25T01:22:02+02:00 (7 years ago)
Author:
Don-vip
Message:

sonar - squid:S4423 - Weak SSLContexts should not be used

Location:
trunk/src/org/openstreetmap/josm/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/CertificateAmendment.java

    r13647 r13679  
    229229            TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
    230230            tmf.init(keyStore);
    231             SSLContext sslContext = SSLContext.getInstance("TLS");
     231            SSLContext sslContext = SSLContext.getInstance("TLSv1.2");
    232232            sslContext.init(null, tmf.getTrustManagers(), null);
    233233            SSLContext.setDefault(sslContext);
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControlHttpsServer.java

    r12846 r13679  
    277277        tmf.init(ks);
    278278
    279         sslContext = SSLContext.getInstance("TLS");
     279        sslContext = SSLContext.getInstance("TLSv1.2");
    280280        sslContext.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
    281281
Note: See TracChangeset for help on using the changeset viewer.