Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no valid keystore #11

Open
litingjun2015 opened this issue Jan 28, 2019 · 0 comments
Open

no valid keystore #11

litingjun2015 opened this issue Jan 28, 2019 · 0 comments

Comments

@litingjun2015
Copy link

Hello,

As Jetty wiki said, I'm creating keystore using keytool -keystore /etc/cas/jetty/thekeystore -alias cas -genkey -keyalg RSA

$ ll /etc/cas/jetty/
total 20
-rw-r--r-- 1 Administrator 197121 7293 Jan 28 10:11 thekeystore

but when I run mvn clean package jetty:run-forked , it's said:

[STDERR] 2019-01-28 10:11:35.785:INFO:oejs.ServerConnector:main: Started ServerConnector@54e7df6a{HTTP/1.1,[http/1.1]}{0.0.0.0:9080}
[STDOUT] -40LXX65XTU2L no valid keystore
[STDERR] java.lang.IllegalStateException: no valid keystore
[STDERR] at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:48)
[STDERR] at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:1020)
[STDERR] at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:336)
[STDERR] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
[STDERR] at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
[STDERR] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
[STDERR] at org.eclipse.jetty.server.SslConnectionFactory.doStart(SslConnectionFactory.java:64)
[STDERR] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
[STDERR] at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
[STDERR] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
[STDERR] at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:260)
[STDERR] at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:81)
[STDERR] at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:244)
[STDERR] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
[STDERR] at org.eclipse.jetty.server.Server.doStart(Server.java:384)
[STDERR] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
[STDERR] at org.eclipse.jetty.maven.plugin.Starter.run(Starter.java:370)
[STDERR] at org.eclipse.jetty.maven.plugin.Starter.main(Starter.java:468)
[INFO] Forked execution exit: 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

Please help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant