Ignore:
Timestamp:
2014-07-26T16:36:43+02:00 (10 years ago)
Author:
Don-vip
Message:

see #10230, see #10033 - SAN tweaks + fix unit test (for real?)

File:
1 edited

Legend:

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

    r7335 r7337  
    7979    private SSLContext sslContext;
    8080
    81     private static final String KEYSTORE_FILENAME = "josm.keystore";
     81    private static final int HTTPS_PORT = 8112;
     82
     83    /**
     84     * JOSM keystore file name.
     85     * @since 7337
     86     */
     87    public static final String KEYSTORE_FILENAME = "josm.keystore";
    8288
    8389    /**
     
    196202                    KeyPair pair = generator.generateKeyPair();
    197203
    198                     X509Certificate cert = generateCertificate("CN=localhost, OU=JOSM, O=OpenStreetMap", pair, 1825, "SHA256withRSA", "ip:127.0.0.1");
     204                    X509Certificate cert = generateCertificate("CN=localhost, OU=JOSM, O=OpenStreetMap", pair, 1825, "SHA256withRSA",
     205                            "ip:127.0.0.1,dns:localhost,uri:https://127.0.0.1:"+HTTPS_PORT);
    199206
    200207                    KeyStore ks = KeyStore.getInstance("JKS");
     
    255262     */
    256263    public static void restartRemoteControlHttpsServer() {
    257         int port = Main.pref.getInteger("remote.control.https.port", 8112);
     264        int port = Main.pref.getInteger("remote.control.https.port", HTTPS_PORT);
    258265        try {
    259266            stopRemoteControlHttpsServer();
Note: See TracChangeset for help on using the changeset viewer.