{"action":"created","issue":{"url":"https://api.github.com/repos/xetus-oss/docker-archiva/issues/9","repository_url":"https://api.github.com/repos/xetus-oss/docker-archiva","labels_url":"https://api.github.com/repos/xetus-oss/docker-archiva/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/xetus-oss/docker-archiva/issues/9/comments","events_url":"https://api.github.com/repos/xetus-oss/docker-archiva/issues/9/events","html_url":"https://github.com/xetus-oss/docker-archiva/issues/9","id":303679098,"number":9,"title":"KEYSTORE passcode issue.","user":{"login":"slackeast","id":13526968,"avatar_url":"https://avatars0.githubusercontent.com/u/13526968?v=4","gravatar_id":"","url":"https://api.github.com/users/slackeast","html_url":"https://github.com/slackeast","followers_url":"https://api.github.com/users/slackeast/followers","following_url":"https://api.github.com/users/slackeast/following{/other_user}","gists_url":"https://api.github.com/users/slackeast/gists{/gist_id}","starred_url":"https://api.github.com/users/slackeast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackeast/subscriptions","organizations_url":"https://api.github.com/users/slackeast/orgs","repos_url":"https://api.github.com/users/slackeast/repos","events_url":"https://api.github.com/users/slackeast/events{/privacy}","received_events_url":"https://api.github.com/users/slackeast/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-09T00:11:48Z","updated_at":"2018-03-09T18:55:15Z","closed_at":null,"author_association":"NONE","body":"I run this command:\r\n\r\n`docker` run --name archiva -h archiva -d -p 443:8443 -e SSL_ENABLED=true -e `KEYSTORE_PASS=“passcode2017#”` -v /opt/archiva:/archiva-data xetusoss/archiva\r\n\r\nHowever, I get this error:\r\n\r\n\r\n> Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:780)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at java.security.KeyStore.load(KeyStore.java:1445)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:55)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at org.eclipse.jetty.util.ssl.SslContextFactory.getKeyStore(SslContextFactory.java:1053)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:1013)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:264)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at org.eclipse.jetty.server.ssl.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:612)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at org.eclipse.jetty.server.Server.doStart(Server.java:293)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1274)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at java.security.AccessController.doPrivileged(Native Method)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1197)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       ... 13 more\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 | Caused by: java.security.UnrecoverableKeyException: Password verification failed\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:778)\r\n> INFO   | jvm 5    | 2018/03/08 23:58:32 |       ... 29 more\r\n\r\n\r\nWhen I goto /opt/archiva/ssl/keystore and type this command:\r\n\r\n\r\n`keytool -list -v -keystore keystore -storepass passcode2017#`\r\n\r\n\r\nI then get a list of certificates.  So I know the passcode is correct.\r\nNot sure the problem.  Its almost like its still using the default \"changeit\" password.   Advice?"},"comment":{"url":"https://api.github.com/repos/xetus-oss/docker-archiva/issues/comments/371911563","html_url":"https://github.com/xetus-oss/docker-archiva/issues/9#issuecomment-371911563","issue_url":"https://api.github.com/repos/xetus-oss/docker-archiva/issues/9","id":371911563,"user":{"login":"x-lhan","id":8022688,"avatar_url":"https://avatars3.githubusercontent.com/u/8022688?v=4","gravatar_id":"","url":"https://api.github.com/users/x-lhan","html_url":"https://github.com/x-lhan","followers_url":"https://api.github.com/users/x-lhan/followers","following_url":"https://api.github.com/users/x-lhan/following{/other_user}","gists_url":"https://api.github.com/users/x-lhan/gists{/gist_id}","starred_url":"https://api.github.com/users/x-lhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x-lhan/subscriptions","organizations_url":"https://api.github.com/users/x-lhan/orgs","repos_url":"https://api.github.com/users/x-lhan/repos","events_url":"https://api.github.com/users/x-lhan/events{/privacy}","received_events_url":"https://api.github.com/users/x-lhan/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T18:55:15Z","updated_at":"2018-03-09T18:55:15Z","author_association":"CONTRIBUTOR","body":"Can you confirm the keystore pass configured under \" /opt/archiva/conf/jetty.xml\" is expected? If it is not the same password. It maybe  cause by a limitation in password pattern. Currently the password does not support double backslash(e.g. \"\\\\\"). Please modify  jetty.xml to match and give a try after."}}
{"actor":{"display_login":"x-lhan"}}