Changeset 7344 in josm for trunk


Ignore:
Timestamp:
2014-07-28T20:30:59+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10230 - add information message before installing certificate to Windows Root CA store

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java

    r7343 r7344  
    260260            return false;
    261261        }
    262         // JOSM certificate not found, install it to Windows-ROOT keystore, used by IE, Chrome and Safari, but not by Firefox
     262        // JOSM certificate not found, warn user
     263        StringBuilder message = new StringBuilder("<html>");
     264        message.append(tr("Remote Control is configured to provide HTTPS support.<br>"+
     265                "This requires to add a custom certificate generated by JOSM to the Windows Root CA store.<br><br>"+
     266                "You are now going to be prompted by Windows to confirm this operation.<br>"+
     267                "To enable proper HTTPS support, <b>please click Yes</b> in next dialog.<br><br>"+
     268                "If unsure, you can also click No then disable HTTPS support in Remote Control preferences."));
     269        message.append("</html>");
     270        JOptionPane.showMessageDialog(Main.parent, message.toString(), tr("HTTPS support in Remote Control"), JOptionPane.INFORMATION_MESSAGE);
     271        // install it to Windows-ROOT keystore, used by IE, Chrome and Safari, but not by Firefox
    263272        Main.info(tr("Adding JOSM localhost certificate to {0} keystore", WINDOWS_ROOT));
    264273        ks.setEntry(entryAlias, trustedCert, null);
Note: See TracChangeset for help on using the changeset viewer.