You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to HTTP/1.1 also HTTP/2 is supported with and without TLS.
When using TLS also ALPN is supported which can upgrade an HTTP/1.1
request to an HTTP/2 request if the client supports it.
Furthermore, a new property 'scout.jetty.useTls' is introduced to enable
TLS without providing a path to a keystore. In this situation a new
self-signed in memory certificate is created on each server startup.
The creation of a self-signed certificate is only active in development.
359560
return"Specifies if the Jetty server should use TLS. If true, the server must either be started in development mode (then a new self-singed certificate is created automatically),"
71
+
+ "or a Java KeyStore must be configured using property '" + BEANS.get(ScoutJettyKeyStorePathProperty.class).getKey() + "'."
72
+
+ "By default this property is true, if a Java KeyStore has been specified.";
return"Setting this property to a valid X-500 name will automatically generate a self-signed SSL certificate and store it in the keystore file path specified.\n"
65
-
+ "This property is the X500 name (DN) for which the certificate is issued.\n"
92
+
return"Specifies the X-500 name to use in the self-signed certificate when starting Jetty in development mode with TLS enabled."
66
93
+ "For example 'CN=my-host.my-domain.com,C=US,ST=CA,L=Sunnyvale,O=My Company Inc.'.\n"
67
-
+ "Use in development only!";
94
+
+ "This property is only used in development mode and only if the property '" + BEANS.get(ScoutJettyUseTlsProperty.class).getKey() + "' is true "
95
+
+ "and no existing Java keystore is specified (property '" + BEANS.get(ScoutJettyKeyStorePathProperty.class).getKey() + "').";
68
96
}
69
97
}
70
98
@@ -94,7 +122,7 @@ public String getKey() {
94
122
95
123
@Override
96
124
publicStringdescription() {
97
-
return"Https private key password. Supports obfuscated values prefixed with 'OBF:'.";
125
+
return"The password (if any) for the specific key within the key store. Supports obfuscated values prefixed with 'OBF:'.";
98
126
}
99
127
}
100
128
@@ -109,7 +137,7 @@ public String getKey() {
109
137
110
138
@Override
111
139
publicStringdescription() {
112
-
return"Https certificate alias in keystore.";
140
+
return"Https certificate alias of the key in the keystore to use.";
Copy file name to clipboardExpand all lines: org.eclipse.scout.rt.platform.test/src/test/java/org/eclipse/scout/rt/platform/util/ConnectionErrorDetectorTest.java
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@
9
9
*/
10
10
packageorg.eclipse.scout.rt.platform.util;
11
11
12
+
importstaticorg.junit.Assert.assertEquals;
13
+
12
14
importjava.io.IOException;
13
15
importjava.io.InterruptedIOException;
14
16
importjava.net.SocketException;
@@ -33,12 +35,14 @@ public class ConnectionErrorDetectorTest {
0 commit comments