Por favor, possuo uma aplicação em java que funciona no meu computador normalmente, fiz no Eclipse, usando TomCat 10 e ela se conecta no SQL Server 2014.
Pois bem, subi a mesma no provedor king host, segui corretamente os passos, gerando o arquivo war, reiniciando o tomcat. E na hora de fazer a conexão ao banco está retornando a mensagem de erro abaixo. Podem me ajudar?
com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: “Certificates do not conform to algorithm constraints”. ClientConnectionId:a272ec03-619a-4614-b2cb-18eb92700dd1
com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:3806)
com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1906)
com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:3329)
com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:2950)
com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:2790)
com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:1663)
com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1064)
java.sql/java.sql.DriverManager.getConnection(DriverManager.java:681)
java.sql/java.sql.DriverManager.getConnection(DriverManager.java:252)
clientes.ClienteDao.validarAcesso(ClienteDao.java:23)
org.apache.jsp.acesso_jsp._jspService(acesso_jsp.java:134)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
jakarta.servlet.http.HttpServlet.service(HttpServlet.java:777)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:466)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:380)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:328)
jakarta.servlet.http.HttpServlet.service(HttpServlet.java:777)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)Root Cause
javax.net.ssl.SSLHandshakeException: Certificates do not conform to algorithm constraints
java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)
java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:371)
java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:314)
java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:309)
java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:654)
java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(CertificateMessage.java:473)
java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(CertificateMessage.java:369)
java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:396)
java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:480)
java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:458)
java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:201)
java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172)
java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1505)
java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1420)
java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:455)
java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:426)
com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1795)
com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:3329)
com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:2950)
com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:2790)
com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:1663)
com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1064)
java.sql/java.sql.DriverManager.getConnection(DriverManager.java:681)
java.sql/java.sql.DriverManager.getConnection(DriverManager.java:252)
clientes.ClienteDao.validarAcesso(ClienteDao.java:23)
org.apache.jsp.acesso_jsp._jspService(acesso_jsp.java:134)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
jakarta.servlet.http.HttpServlet.service(HttpServlet.java:777)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:466)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:380)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:328)
jakarta.servlet.http.HttpServlet.service(HttpServlet.java:777)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)