client: explicitly define SslContextFactory::Server for https (#4288)

Fixes #4199

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2020-08-28 12:09:23 +05:30 committed by GitHub
parent 9c7c22eb84
commit 0501575efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -220,7 +220,7 @@ public class ServerDaemon implements Daemon {
// Configure SSL
if (httpsEnable && !Strings.isNullOrEmpty(keystoreFile) && new File(keystoreFile).exists()) {
// SSL Context
final SslContextFactory sslContextFactory = new SslContextFactory();
final SslContextFactory sslContextFactory = new SslContextFactory.Server();
// Define keystore path and passwords
sslContextFactory.setKeyStorePath(keystoreFile);

View File

@ -144,8 +144,8 @@
<cs.jaxb.version>2.3.0</cs.jaxb.version>
<cs.jaxws.version>2.3.2-1</cs.jaxws.version>
<cs.jersey-bundle.version>1.19.4</cs.jersey-bundle.version>
<cs.jetty.version>9.4.26.v20200117</cs.jetty.version>
<cs.jetty-maven-plugin.version>9.4.26.v20200117</cs.jetty-maven-plugin.version>
<cs.jetty.version>9.4.27.v20200227</cs.jetty.version>
<cs.jetty-maven-plugin.version>9.4.27.v20200227</cs.jetty-maven-plugin.version>
<cs.jna.version>4.0.0</cs.jna.version>
<cs.joda-time.version>2.10.5</cs.joda-time.version>
<cs.jpa.version>2.2.1</cs.jpa.version>