我生成了我的自签名证书,如下所示: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 |在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 |在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错误[WrapperListener_start_runner] * SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - 启动失败的jvm 1 | java.io.IOException:密钥库被篡改,或密码不正确