当前位置: 首页 > 工具软件 > TLS Lite > 使用案例 >

Bad Request This combination of host and port requires TLS

公孙宗清
2023-12-01

今天接触一个旧的项目,启动一切正常,但在用http://localhost:8080/a访问首页时出现:

Bad Request This combination of host and port requires TLS

这个看起来是要求有证书才行,马上查看项目配置,发现确实配置了tls

ssl:
  key-store: ../config/abc.pfx
  key-store-password: cde
  key-store-type: PKCS12

两个解决方法:

1.注释掉上面的ssl相关配置;

2.采用https的方式访问项目。

 类似资料:

相关阅读

相关文章

相关问答