Blog Archive

Tuesday 15 September 2015

Adding an SSL certificate to Subsonic on MAC OSX

# Stop Subsonic first

# Combine your certificates into one file :
cat primary.crt intermediate.crt root.crt >> combined.crt

#generate a pkcs12 certificate (make all passwords "subsonic") :
openssl pkcs12 -export -inkey server.key -in combined.crt -out cert-chain.pkcs12

#create a keystore file (again, make all passwords "subsonic") :
keytool -importkeystore -srckeystore cert-chain.pkcs12 -srcstoretype PKCS12 -destkeystore subsonic.keystore

#combine the keystore file into the jar file in /Applications/Subsonic.app/Contents/Resources/Java/ :
sudo jar uf subsonic-booter-jar-with-dependencies.jar subsonic.keystore

#copy file into place (if you didn't generate it in place) :
sudo cp subsonic-booter-jar-with-dependencies.jar /Applications/Subsonic.app/Contents/Resources/Java/subsonic-booter-jar-with-dependencies.jar

#Start Subsonic