Created
January 30, 2015 01:59
-
-
Save kris-anderson/3d91a8d7e5e050558f9b to your computer and use it in GitHub Desktop.
Revisions
-
kris-anderson created this gist
Jan 30, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ 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