我在阿里云有一个服务器,用tomcat 8.0部署的,tomcat端口是8080,
买了一个阿里云的免费的SSL,域名用的www.qdjmj.top
我现在想把这个地址做成Https的,如下:
http://www.qdjmj.top:8080/scm/portal/account/wishAuth.do?code=1234
已经在conf里建立了cert,放入了.pfx文件
在server.xml加入了配置
protocol="HTTP/1.1"
SSLEnabled="true"
scheme="https"
secure="true"
keystoreFile="C:\tomcat8.5\conf\cert\214227582570470.pfx"
keystoreType="PKCS12"
keystorePass="214227582570470"
clientAuth="false"
SSLProtocol="TLSv1+TLSv1.1+TLSv1.2"
ciphers="TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA256"/>
启动Tomcat后,用下面带https的地址访问报错,但是用http就没问题
https://www.qdjmj.top:8080/scm/portal/account/wishAuth.do?code=1234
Tomcat 报错
16-Aug-2017 10:57:51.512 信息 [http-nio-8080-exec-2] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens
题主您好,
在火狐浏览器里访问https网址,提示安全连接出错喔:
Secure Connection Failed
An error occurred during a connection to www.qdjmj.top:8080. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。