![](/img/trans.png)
[英]Spring boot after https: The Tomcat connector configured to listen on port 8444 failed to start.
[英]Spring boot after https: The Tomcat connector configured to listen on port 8443 failed to start
我阅读了几乎所有的资源,尝试了所有我能得到的东西,这些资源在这个网站上似乎是重复的,但没有运气让它发挥作用。
The following works when running in IntelliJ on a windows machine but failed when running as a JAR compiled with Maven on Ubuntu. 在我看来,它好像找不到该文件。
8443是免费的,没有防火墙。 我也尝试了长路径但不工作(server.ssl.keystore=file:/home/@@@/Documents/keystoref.p12)
server.ssl.key-alias=tomcat
server.ssl.key-store-type=PKCS12
server.ssl.key-store-password=@@@
server.ssl.key-store=classpath:keystoref.p12
server.port=8443
server.ssl.enabled=true
***************************
APPLICATION FAILED TO START
***************************
Description:
The Tomcat connector configured to listen on port 8443 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 8443, or configure this application to listen on another port.
我也不确定要使用什么私钥。 我是否应该使用有助于生成必须转换为 p12 的 CSR 的私钥
或者我应该使用我的私钥和我在 email 中收到的“certificate.crt”的混合生成的 p12,按照之前的答案。 我认为私钥无论如何都与证书相关联,所以应该没有区别吗?
openssl pkcs12 -export -in <mycert.crt> -inkey <mykey.key> -out keystore.p12 -name <alias>
你提到你试过
server.ssl.keystore=file:/home/@@@/Documents/keystoref.p12
您是否尝试过使用:
server.ssl.key-store=file:/home/@@@/Documents/keystoref.p12
?
我无法找到这个问题的问题。 我开始了一个新项目并在此基础上进行构建,并且再也没有遇到过这个问题,所以最终这个问题被关闭了。 用于生成 CSR 的第一个密钥也可以正常工作。
更新问题来自 pom.xml 上的 spring 版本,无论出于何种原因,一旦从
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.9.RELEASE</version>
到版本 2.3.1.RELEASE 它工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.