Changeset 7337 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2014-07-26T16:36:43+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControlHttpsServer.java
r7335 r7337 79 79 private SSLContext sslContext; 80 80 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"; 82 88 83 89 /** … … 196 202 KeyPair pair = generator.generateKeyPair(); 197 203 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); 199 206 200 207 KeyStore ks = KeyStore.getInstance("JKS"); … … 255 262 */ 256 263 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); 258 265 try { 259 266 stopRemoteControlHttpsServer();
Note:
See TracChangeset
for help on using the changeset viewer.