mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-22 15:53:58 +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
|
||||
{
|
||||
ResourceBundle properties = ResourceBundle.getBundle("ssl");
|
||||
if (properties != null)
|
||||
{
|
||||
_enableSSL = properties.getString(ENABLE_SSL).equals("true");
|
||||
if (_enableSSL)
|
||||
{
|
||||
|
@ -88,9 +90,17 @@ public class ServerSSLProperties implements ISSLProperties
|
|||
System.out.println("[server keystore pw:\t"+_serverKeyStorePassword+"]");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_enableSSL = false;
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
// no ssl properties...set to disabled
|
||||
_enableSSL = false;
|
||||
|
||||
//e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue