密钥库密码验证在nexus启动时失败

时间:2016-03-17 20:01:07

标签: passwords jetty ssl-certificate keystore nexus

我按如下方式生成了自签名证书: sudo keytool -genkey -keyalg RSA -alias jetty -keystore keystore.jks -storepass myjettypassword -validity 360 -keysize 2048

当生成keystore.jks时,我启动了nexus(嵌入了jetty),但是出现了这个错误。请帮忙!

2016-03-17 16:09:04,084-0400 WARN [jetty-main-1] * SYSTEM org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED SslContextFactory @ 4baf273d(./ conf / ssl / keystore。 jks,。/ conf / ssl / keystore.jks):java.io.IOException:Keystore被篡改,或者密码不正确 jvm 1 | java.io.IOException:密钥库被篡改,或密码不正确 jvm 1 |在sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:772)〜[na:1.7.0_95] jvm 1 | at sun.security.provider.JavaKeyStore $ JKS.engineLoad(JavaKeyStore.java:55)〜[na:1.7.0_95] jvm 1 |在java.security.KeyStore.load(KeyStore.java:1226)〜[na:1.7.0_95] jvm 1 |在org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:55)〜[jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903] jvm 1 |在org.eclipse.jetty.util.ssl.SslContextFactory.getKeyStore(SslContextFactory.java:1053)〜[jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903] jvm 1 |在org.eclipse.jetty.util.ssl.SslContextFactory.loadTrustStore(SslContextFactory.java:1027)〜[jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903] jvm 1 |在org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:265)〜[jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903] jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903] jvm 1 | at org.eclipse.jetty.server.ssl.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:612)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] jvm 1 | at org.sonatype.nexus.bootstrap.jetty.InstrumentedSslSelectChannelConnector.doStart(InstrumentedSslSelectChannelConnector.java:91)[nexus-bootstrap-2.12.0-01.jar:2.12.0-01] jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903] jvm 1 | at org.eclipse.jetty.server.Server.doStart(Server.java:293)[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903] jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903] jvm 1 |在org.sonatype.nexus.bootstrap.jetty.JettyServer $ JettyMainThread.run(JettyServer.java:247)[nexus-bootstrap-2.12.0-01.jar:2.12.0-01] jvm 1 |引起:java.security.UnrecoverableKeyException:密码验证失败

引起:java.security.UnrecoverableKeyException:密码验证失败 jvm 1 | at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:770)~ [na:1.7.0_95] jvm 1 | ...省略了13个常用帧 jvm 1 | 2016-03-17 15:02:20,808-0400 ERROR [WrapperListener_start_runner] * SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - 启动失败 jvm 1 | java.io.IOException:密钥库被篡改,或密码不正确

1 个答案:

答案 0 :(得分:0)

从这一点我可以告诉你,密钥库文件已损坏。

幸运的是,你可以删除它:

Sonatype的工作/关系/ CONF / SSL / keystore.jks

它将从存储在Nexus功能配置中的证书重建。