Forked from kris-anderson/gist:3d91a8d7e5e050558f9b
Created
September 24, 2021 11:31
-
-
Save pablovillaronga76/f53a4adad8c1d09cf3d382f53187273f to your computer and use it in GitHub Desktop.
Enable Subsonic SSL on Ubuntu 14.04 using StartSSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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