Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save paulvill76/f53a4adad8c1d09cf3d382f53187273f to your computer and use it in GitHub Desktop.
Save paulvill76/f53a4adad8c1d09cf3d382f53187273f to your computer and use it in GitHub Desktop.
Enable Subsonic SSL on Ubuntu 14.04 using StartSSL
1.) Download the certificates from StartSSL:
Private Key (myserver.key)
Server Certificate
CA Certificate
Intermediate Certificate
2.) Copy the contents from the above certificates and paste them into a new server.crt file.
3.) Next, convert the cert from PEM to PKCS12 format using the following command:
openssl pkcs12 -in server.crt -export -out server.pkcs12
4.) Now that the cert has been converted into the proper format you can create the new Java keystore:
keytool -importkeystore -srckeystore server.pkcs12 -destkeystore subsonic.keystore -srcstoretype PKCS12 -srcalias 1 -destalias subsonic
5.) Import the keystore into subsonic-booter-jar-with-dependencies.jar:
zip /usr/share/subsonic/subsonic-booter-jar-with-dependencies.jar subsonic.keystore
6.) Lastly, restart the Subsonic service to load the new certificate:
sudo service subsonic restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment