Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save pablovillaronga76/f53a4adad8c1d09cf3d382f53187273f to your computer and use it in GitHub Desktop.

Select an option

Save pablovillaronga76/f53a4adad8c1d09cf3d382f53187273f to your computer and use it in GitHub Desktop.

Revisions

  1. @kris-anderson kris-anderson created this gist Jan 30, 2015.
    24 changes: 24 additions & 0 deletions gistfile1.txt
    Original 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