在我开始之前,我只是按照来自DZone的步骤进行操作。使用生成的密钥库文件的tomcat https配置
Setting Up Tomcal SSL in 5 Minutes
我已经看到了几个类似的教程,但我无法找到答案我的问题。
问题:
我可以访问HTTP/8080,但不能访问HTTPS/8443,它似乎永远载入。
尝试使用HTTP/8443其中得到一个错误(正如我所料)
我尝试使用卷曲命令:
[email protected]:/home/borgymanotoy$ curl -Iv https://localhost:8443
* Rebuilt URL to: https://localhost:8443/
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8443 (#0)
* found 173 certificates in /etc/ssl/certs/ca-certificates.crt
* found 697 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* Operation timed out after 300495 milliseconds with 0 out of 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 300495 milliseconds with 0 out of 0 bytes received
注:
我随后在给定的位点的步骤。检查以下内容:
1)成功生成.keystore文件。
2)用密码正确地更新了tomcat的server.xml和生成密钥库文件的确切路径,并检查了正确的情况。
3)检查了tomcat日志并没有发现任何错误。
任何人试图按照链接中的步骤,得到了错误,并修复它?
keystoreFile = “/用户/ loiane /的.keystore” - 这条线的站点。您是否添加了确切的密钥库文件名? – jorrin
如果你尝试'openssl s_client -connect localhost:8443',会发生什么? – Andreas
@jorrin是我有,keystoreFile =“/ home/borgymanotoy/.keystore” –