Fallo de conexión SQL Gateway a base de datos SQLServer
Estoy intentando realizar una conexión a una base de datos de SQLServer, pero recibo este error:
ERROR <Ens>ErrOutConnectFailed: JDBC Connect failed for 'SQLEmails' (jdbc:sqlserver://;serverName=nombredelservidor.es;databaseName=DKVMAIL_PRE) / 'SQLSeverDKVMAIL_PRE' with error ERROR #5023: Remote Gateway Error: JDBC Gateway connection failed for jdbc:sqlserver://;serverName=nombredelservidor.es;databaseName=DKVMAIL_PRE error: Remote JDBC error: com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target". ClientConnectionId:433d4b77-1dc0-4a48-8cf9-528bd64a7cba.
Parece que hay un problema en la conexión vía SSL, pero no veo donde podría configurarlo dentro de la configuración del SQL Gateway. ¿Alguna idea?
Gracias
Buenas @Saul Perez echa un vistazo a la siguiente documentación de SQL Server:
https://learn.microsoft.com/en-us/sql/connect/jdbc/connecting-with-ssl-e...
Parece que únicamente necesitas añadir el siguiente parámetro:
trustServerCertificate=true
Muchas gracias, con ese parámetro ha funcionando.