I am using the standalone version of subsonic on Ubuntu server.
This is what I did to install the cert:
There are four commands that needed to be run.
1. Combine the certs together into one file (there are multiple ways to do this, I chose the easiest way in linux)
- Code: Select all
cat private.crt servercert.crt intermediate.crt > echo subsonic.crt
2. Convert the cert from PEM to PKCS12 so java can use it.
- Code: Select all
openssl pkcs12 -in subsonic.crt -export -out subsonic.pkcs12
3. Create Java keystore
- Code: Select all
keytool -importkeystore -srckeystore subsonic.pkcs12 -deskeystore subsonic.keystore -srcstoretype PKCS12 -srcalias 1 -destalias tomcat
4. Import the keystore into the jar file
- Code: Select all
zip /var/subsonic/standalone/subsonic-booter-jar-with-dependencies.jar subsonic.keystore
Start subsonic and you should be good to go!
One very important thing to note: When asked for a password for the keystore or keys, use subsonic as the password. Any other password used and it will fail on starting subsonic.