Hybris Commerce ERR SSL版本或CIPHER MISMATCH

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Hybris Commerce ERR SSL版本或CIPHER MISMATCH相关的知识,希望对你有一定的参考价值。

我用OpenSSL创建了一个证书

openssl genrsa -des3 -out server.key 2048
openssl rsa -in server.key -out server.key
openssl req -new -key server.key -out server.csr
keytool -import -trustcacerts -alias server.key -file server.crt -keystore 

并将keystore.jks放入${catalina.home}/lib/

server.xml中

<Connector port="9002"
                          maxHttpHeaderSize="8192"
                          maxPostSize="4194304"
              maxThreads="150"
              protocol="org.apache.coyote.http11.Http11Protocol"
              executor="hybrisExecutor"
              enableLookups="false"
              acceptCount="100"
              connectionTimeout="20000"
              disableUploadTimeout="true"
              URIEncoding="UTF-8"
              SSLEnabled="true"
                                       scheme="https"
                                       secure="true"
                                       clientAuth="false"
                               sslProtocol = "TLS"
                               sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2"

                               keystoreFile="${catalina.home}/lib/keystore.jks"
                               keystorePass="123456"

在Chrome上,它会出现以下错误:

This site can’t provide a secure connection
13.236.191.242 uses an unsupported protocol.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH

Unsupported protocol
The client and server don't support a common SSL protocol version or cipher suite.
curl -Iv https://11.231.191.212:9001/

Trying 11.231.191.212...
TCP_NODELAY set
Connected to 11.231.191.212 (11.231.191.212) port 9001 (#0)
schannel: SSL/TLS connection with 11.231.191.212 port 9001 (step 1/3)
schannel: checking server certificate revocation
schannel: using IP address, SNI is not supported by OS.
schannel: sending initial handshake data: sending 156 bytes...
schannel: sent initial handshake data: sent 156 bytes
schannel: SSL/TLS connection with 11.231.191.212 port 9001 (step 2/3)
schannel: failed to receive handshake, need more data
答案

问题是我正在使用OpenSSL创建自签名证书,但是当从Java Keystore生成证书时,它完美地运行。

keytool.exe -genkey -alias tomcat -keyalg RSA -keystore c:	omcatkeys

OpenSSL和密钥库以不同的文件格式生成证书,您会看到与以下链接的不同之处。 https://security.stackexchange.com/questions/98282/difference-between-openssl-and-keytool

以上是关于Hybris Commerce ERR SSL版本或CIPHER MISMATCH的主要内容,如果未能解决你的问题,请参考以下文章

SAP Hybris Commerce product读取的调试截图

hybris commerce storefront的产品搜索功能

MacOS Monterey 和 SAP Commerce / Hybris 1905:无法启动 hybrisserver.sh

SAP Hybris Commerce - 初始化参考属性的默认值

如何在Hybris commerce里创建一个media对象

在SAP Hybris commerce Storefront里购物下单