Changeset 7347 in josm


Ignore:
Timestamp:
2014-07-29T00:32:15+02:00 (10 years ago)
Author:
Don-vip
Message:

see #10033 - add new entry dns:127.0.0.1 to make it work with IE

Location:
trunk/src/org/openstreetmap/josm/io/remotecontrol
Files:
1 added
1 edited

Legend:

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

    r7343 r7347  
    5454import sun.security.x509.CertificateVersion;
    5555import sun.security.x509.CertificateX509Key;
    56 import sun.security.x509.DNSName;
    5756import sun.security.x509.ExtendedKeyUsageExtension;
    5857import sun.security.x509.GeneralName;
     
    230229
    231230            X509Certificate cert = generateCertificate("CN=localhost, OU=JOSM, O=OpenStreetMap", pair, 1825, "SHA256withRSA",
    232                     "dns:localhost,ip:127.0.0.1,ip:::1,uri:https://127.0.0.1:"+HTTPS_PORT+",uri:https://::1:"+HTTPS_PORT);
     231                    // see #10033#comment:20: All browsers respect "ip" in SAN, except IE which only understands DNS entries:
     232                    // https://connect.microsoft.com/IE/feedback/details/814744/the-ie-doesnt-trust-a-san-certificate-when-connecting-to-ip-address
     233                    "dns:localhost,ip:127.0.0.1,dns:127.0.0.1,ip:::1,uri:https://127.0.0.1:"+HTTPS_PORT+",uri:https://::1:"+HTTPS_PORT);
    233234
    234235            KeyStore ks = KeyStore.getInstance("JKS");
Note: See TracChangeset for help on using the changeset viewer.