草庐IT

SSL_PROTOCOL_ERROR

全部标签

java - SSL 握手异常 : no cipher suites in common

按照说明进行操作here并重新创建了我之前错误创建的证书。正如我现在看到的,有些东西已经改变了javax.net.ssl.SSLHandshakeException:nociphersuitesincommon在服务器上和javax.net.ssl.SSLHandshakeException:Receivedfatalalert:handshake_failure在客户端上。而不是错误thisquestion服务器是ClassFileServer.java和各自的客户SSLSocketClientWithClientAuth.java关于让两端很好地发挥作用的任何提示,请注意,我使用的

java - jTDS JDBC 驱动程序 : getNString() throws error

我正在使用jtDSJDBC驱动程序,当我调用ResultSet.getNString(index);时,出现以下异常:run:Exceptioninthread"main"java.lang.AbstractMethodError:net.sourceforge.jtds.jdbc.JtdsResultSet.getNString(I)Ljava/lang/String;atjavasql.ProductsController.PrePopulate(ProductsController.java:51)atjavasql.ProductsController.(ProductsCon

java - log4j2-gelf "ERROR StatusLogger appenders contains an invalid element or attribute "GELF""

刚开始接触Graylog2,想通过GELF输入记录一些Java应用程序。因此我使用了库log4j2并添加了graylog2-gelfclient。满足所有依赖项并且程序正在运行。但是我的Logmanager的初始化抛出以下错误:ERRORStatusLoggerappenderscontainsaninvalidelementorattribute"GELF"我的代码只是将错误记录到记录器:staticfinalLoggerlogger=LogManager.getLogger(Application.class);publicstaticvoidmain(String[]args){

java - 如果服务器不支持 SSLv3,为什么 Java SSL 套接字连接会严重失败

在提供商禁用SSLv3后,我们使用JDK7对www1.ecall.ch的CXF调用开始失败,我不明白为什么。通过设置-Dhttps.protocols=TLSv1解决了这个问题,但我很惊讶这甚至是必要的。JDK7/8支持所有SSLv2Hello(2)、SSLv3、TLSv1、TLSv1.1和TLSv1.2,我希望如此JVM在握手期间尝试自上而下,即首先从TLSv1.2开始即使服务器不支持SSLv3也能建立连接这是设置-Dhttps.protocols=TLSv1之前SSL调试日志的相关部分,即使用JVM默认值(我在开头切断了所有证书的列表):triggerseedingofSecure

java - 如何修复 ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY

我有一个网站,最近chrome在尝试访问它时开始返回此错误:ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY这是一个java+jsp的网站,运行在apachetomacat上。它还使用Verisign认证,但我读到该错误与此证书无关。感谢您的帮助。 最佳答案 我按照这个修复了它:http://support.filecatalyst.com/index.php?/Knowledgebase/Article/View/277/0/workaround-for-tomcat-ssl-tls-logjam-vuln

java - 通过 JDBC 将 DDL 与 SELECT 混合时为 "ERROR: cached plan must not change result type"

我在通过JDBC使用PostgreSQL时遇到了一个有趣的问题(无法在JDBC之外重现),我得到了一个“ERROR:cachedplanmustnotchangeresulttype”重现此问题的最简单方法是使用以下代码:Connectionc=getConnection();c.setAutoCommit(true);Liststatements=Arrays.asList("createtablet(aint)","select*fromt","altertabletaddbint","select*fromt","altertabletaddcint","select*fromt

java - "error_description": "AADSTS70002: The request body must contain the following parameter: ' client_secret or client_assertion'

我使用了https://github.com/AzureAD/azure-activedirectory-library-for-java/blob/master/src/samples/public-client-app-sample/src/main/java/PublicClient.java中的代码.唯一的区别是CLIENT_ID已更新。我一直收到错误消息"error_description":"AADSTS70002:Therequestbodymustcontainthefollowingparameter:'client_secretorclient_assertion'

java - Protocol Buffers 中 getSerializedSize() 的性能损失

在使用writeTo(OutputStream)序列化消息之前,在GPB消息上调用getSerializedSize()是否会降低性能?在将消息写入输出流之前,我需要知道消息的大小。我在Java上使用GPB。 最佳答案 没有性能损失。来自thisthread的第二条消息在Protobuf邮件列表上:YoucancallgetSerializedSize()tofindoutthemessagesizeaheadoftime.Notethatcallingthisdoesn'tactuallywasteanytimesincether

java - '严重 : SAAJ0009: Message send failed error' while sending a message

Feb8,201111:56:49AMcom.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnectionpostSEVERE:SAAJ0009:Messagesendfailedcom.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:java.security.PrivilegedActionException:com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:Messagesendfailedatcom.sun.

java - 调用 WebService 并遇到 SSL/cert 问题

首先我要说的是,我对在Java中设置keystore等知之甚少我正在尝试调用SOAPWeb服务,我获得了wsdl,生成了代码等。在我部署它并尝试触发WS调用之前,一切似乎都正常。这是我的设置:Tomcat7.0.35Java,jdk1.6.0_39pfx文件和密码项目作为标准网络应用程序(war)部署到tomcat当我运行代码时,出现以下异常:Causedby:javax.net.ssl.SSLHandshakeException:SSLHandshakeExceptioninvokinghttps://tallyservices-qa.olson.com/tallyDemo2WebS