我无法使用浏览器访问启用 SSL/TLS 的 tomcat-6.0.36-windows-x64 服务器。它适用于 openssl 但不适用于任何浏览器。
初始化看起来不错:
16.01.2013 16:45:09 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
还有openSSL:
openssl s_client -tls1 -connect localhost:8443:
结果:
New, TLSv1/SSLv3, Cipher is ECDH-ECDSA-AES256-SHA
Server public key is 256 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol : TLSv1
Cipher : ECDH-ECDSA-AES256-SHA
只有网络浏览器不起作用:
Firefox 15.0.1 说:ssl_error_no_cypher_overlap
Chrome 24.0.1312.52 m:ERR_SSL_VERSION_OR_CIPHER_MISMATCH
那是tomcat的配置:
Connector port="8443" maxHttpHeaderSize="8192"
protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="150"
scheme="https"
secure="true"
SSLProtocol="all"
enableLookups="false"
disableUploadTimeout="true"
acceptCount="100"
SSLEnabled="true"
SSLCertificateFile="../ecc_servercert.crt"
SSLCertificateKeyFile="../ec_serverkey.pem"
该证书基于黄道曲线算法:
openssl ecparam -out c:\ecc\ec_serverkey.pem -name secp256k1 -genkey
openssl req -new -x509 -nodes -days 365 -key c:\ecc\ec_serverkey.pem -out c:\ecc\ecc_servercert.crt
希望有人有想法?根据几个小时的搜索,浏览器应该支持这个配置......
拉加兹,托比