开发者社区> 问答> 正文

买了阿里云免费的

我在阿里云有一个服务器,用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

展开
收起
牛肉汤123 2017-08-16 11:02:09 4408 0
1 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。

    题主您好,

    在火狐浏览器里访问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

    2019-07-17 21:29:57
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里云大使学习手册 立即下载
阿里云产品九月刊 立即下载
阿里云产品八月刊 立即下载