117118119120121122123124125126127
} sock.startHandshake(); } catch (Exception e) { LDAPException ex = new LDAPException("SSL connection to " + host + ":" + port, LDAPException.CONNECT_ERROR); ex.initCause(e); throw ex; } return sock; }