tomcat - 不可恢复的 key 异常

标签 tomcat ssl server

  • 密码相同
  • 用户有权限

错误日志:

> 2017-09-14 15:37:21,186 ERROR [main] 
> o.a.coyote.http11.Http11NioProtocol Failed to start end point
> associated with ProtocolHandler ["https-jsse-nio-443"]
> java.lang.IllegalArgumentException:
> java.security.UnrecoverableKeyException: Cannot recover key
>             at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:114)
>             at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.addPreviouslyRemovedConnectors(TomcatEmbeddedServletContainer.java:250)
>             at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:193)
>             at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:297)
>             at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:145)
>             at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
>             at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
>             at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
>             at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
>             at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
>             at com.atlassian.bitbucket.internal.boot.BitbucketServerApplication.start(BitbucketServerApplication.java:247)
>             at com.atlassian.bitbucket.internal.boot.BitbucketServerApplication.main(BitbucketServerApplication.java:83)
>             at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
>             at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
>             at com.atlassian.bitbucket.internal.launcher.BitbucketServerLauncher.start(BitbucketServerLauncher.java:151)
>             at com.atlassian.bitbucket.internal.launcher.BitbucketServerLauncher.main(BitbucketServerLauncher.java:99)
>             ... 11 frames trimmed

最佳答案

长话短说:RTFM

Both ssl.key-store-password and ssl.key-password require explicit configuration. Even if you did not configure both values in the server.xml file, values for both entries need to be explicitly set in bitbucket.properties to secure Bitbucket with SSL.

关于tomcat - 不可恢复的 key 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46225240/

相关文章:

分块问题时 Tomcat gzip

java - Intellij IDEA 中的 Tomcat 错误

java - 如何让我的 Tomcat v6.0 localhost Server 启用压缩 "gzip"?

tomcat - 为什么 Chef 没有正确地重新加载我的 Nginx 和 Tomcat 文件?

amazon-web-services - 如何在 AWS 实例上实现 SSL

linux - 如何通过 linux 服务器 SSH 访问 FTP?

server - 当主进程启动多个子进程并退出时,如何为 systemd 设置 PIDFile?

javax.net.ssl.SSLHandshakeException : Received fatal alert: handshake_failure Error in APN

Android SSL 错误握手失败

SSL 仅在没有 www 的情况下有效