mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-23 00:03:53 +02:00
just disable ssl if no ssl.properties file
This commit is contained in:
parent
f463e41fb7
commit
b2caa10117
1 changed files with 43 additions and 33 deletions
|
@ -46,6 +46,8 @@ public class ServerSSLProperties implements ISSLProperties
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ResourceBundle properties = ResourceBundle.getBundle("ssl");
|
ResourceBundle properties = ResourceBundle.getBundle("ssl");
|
||||||
|
if (properties != null)
|
||||||
|
{
|
||||||
_enableSSL = properties.getString(ENABLE_SSL).equals("true");
|
_enableSSL = properties.getString(ENABLE_SSL).equals("true");
|
||||||
if (_enableSSL)
|
if (_enableSSL)
|
||||||
{
|
{
|
||||||
|
@ -88,9 +90,17 @@ public class ServerSSLProperties implements ISSLProperties
|
||||||
System.out.println("[server keystore pw:\t"+_serverKeyStorePassword+"]");
|
System.out.println("[server keystore pw:\t"+_serverKeyStorePassword+"]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_enableSSL = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
e.printStackTrace();
|
// no ssl properties...set to disabled
|
||||||
|
_enableSSL = false;
|
||||||
|
|
||||||
|
//e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue