本帖最后由 ZYHT 于 2022-6-15 13:55 编辑
我本地的环境是BeX5_V3.6,Apache Tomcat 6.0 ,根据文档《BeX5V3.8安装部署.pdf》,一步一步配置https部署,生成本地证书,命令如下:
导出证书: keytool -export -alias LocalTest –keystore D:\BeX5_V3.6\java\jre1.8\bin\LocalTest.keystore-file D:\BeX5_V3.6\java\jre1.8\bin\LocalTest.cer -storepass changeit 证书导入到JVM中: keytool -import -trustcacerts -alias LocalTest-keystore D:\BeX5_V3.6\java\jre1.8\lib\security\cacerts -file D:\BeX5_V3.6\java\jre1.8\bin\LocalTest.cer-storepass changeit 验证证书导入: keytool -list -alias LocalTest -keystore D:\BeX5_V3.6\java\jre1.8\lib\security\cacerts-storepass changeit
相应文件的参数配置如下:
D:\BeX5_V3.6\apache-tomcat\conf\server.xml
D:\BeX5_V3.6\conf\server.xml
D:\BeX5_V3.6\apache-tomcat\conf\web.xml
配置过后,访问本地服务器,但是链接还是不安全的,证书也是无效的:
输入登录账号,页面弹出错误 “调用Action出错, sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed”:
|