- 密码相同
- 用户有权限
错误日志:
> 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
andssl.key-password
require explicit configuration. Even if you did not configure both values in theserver.xml
file, values for both entries need to be explicitly set inbitbucket.properties
to secure Bitbucket with SSL.
关于tomcat - 不可恢复的 key 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46225240/