mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 13:05:22 +02:00
[205986] need to check for certs when using daemon
This commit is contained in:
parent
c7a377406d
commit
80ffbb4b26
1 changed files with 23 additions and 0 deletions
|
@ -633,6 +633,29 @@ public class DStoreConnectorService extends StandardConnectorService implements
|
||||||
launchStatus = launchServer(clientConnection, info, daemonPort, monitor);
|
launchStatus = launchServer(clientConnection, info, daemonPort, monitor);
|
||||||
if (!launchStatus.isConnected() && !clientConnection.isKnownStatus(launchStatus.getMessage()))
|
if (!launchStatus.isConnected() && !clientConnection.isKnownStatus(launchStatus.getMessage()))
|
||||||
{
|
{
|
||||||
|
Throwable conE = launchStatus.getException();
|
||||||
|
if (conE instanceof SSLHandshakeException)
|
||||||
|
{
|
||||||
|
List certs = launchStatus.getUntrustedCertificates();
|
||||||
|
if (certs != null && certs.size() > 0)
|
||||||
|
{
|
||||||
|
ISystemKeystoreProvider provider = SystemKeystoreProviderManager.getInstance().getDefaultProvider();
|
||||||
|
if (provider != null)
|
||||||
|
{
|
||||||
|
if (provider.importCertificates(certs, getHostName()))
|
||||||
|
{
|
||||||
|
connect(monitor);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new InterruptedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (setSSLProperties(false))
|
if (setSSLProperties(false))
|
||||||
{
|
{
|
||||||
usedSSL = false;
|
usedSSL = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue