Getting jetty-ssl.xml. Apache archiva (v2.2.4) uses jetty 8.1.14. You can download the 8.1.x from jetty's previous versions and extract the jetty-ssl.xml
file from the /etc
folder into the archiva config folder (<archiva home>/conf
).
Configuring jetty-ssl.xml. See the answers of this question to get more details on updating the file (i.e. port, keystore path, keystore passwork and if private key is encryted, keymanager password).
To obfuscate your password, you can use archiva internal libraries (example using archiva v2.2.3):
java -cp <archiva home>/lib/jetty-util-8.1.14.v20131031.jar org.eclipse.jetty.util.security.Password "{PASSWORD}"
Updating wrapper.conf. Modify Archiva's wrapper configuration (located at <archiva home>/conf/wrapper.conf
) and add the followin entry in the Application parameters section
wrapper.app.parameter.3=%ARCHIVA_BASE%/conf/jetty-ssl.xml
restart archiva service to take new configuration
Troubleshooting. Look at the wrapper log (localted at <archiva home>
/log) for errors. You can increase the log level to INFO for more details. If everything is correct you should see an entry like this (I'm using port 8444):
INFO:oejs.AbstractConnector:Started SslSelectChannelConnector@0.0.0.0:8444