Installing and Setting Up SSL for Subsonic on Windows

Channel:
Subscribers:
14,500
Published on ● Video Link: https://www.youtube.com/watch?v=0ff9n4HZnYA



Duration: 10:13
615 views
9


#Subsonic #MP3Streaming #WebBased #SSL

Full steps can be found at https://i12bretro.github.io/tutorials/0057.html

Prerequisites
   - A XCA PKI database  https://youtu.be/ezzj3x207lQ
 
Create Your SSL Certificate
   01. Launch XCA
   02. Open the PKI database if it is not already (File ≫ Open DataBase), enter password
   03. Click on the Certificates tab, right click on your Intermediate CA certificate
   04. Select New
   05. On the Source tab, make sure Use this Certificate for signing is selected
   06. Verify your Intermediate CA certificate is selected from the drop down
   07. Click the Subject tab
   08. Complete the Distinguished Name section
         internalName: Subsonic SSL
         countryName: US
         stateOrProvinceName: Virginia
         localityName: Northern
         organizationName: i12bretro
         organizationUnitName: i12bretro Certificate Authority
         commonName: subsonic.i12bretro.local
   09. Click the Generate a New Key button
   10. Enter a name and set the key size to at least 2048
   11. Click Create
   12. Click on the Extensions tab
   13. Select End Entity from the type list
   14. Click Edit next to Subject Alternative Name
   15. Add any DNS or IP addresses that the certificate will identify
   16. Update the validity dates to fit your needs
   17. Click the Key Usage tab
   18. Under Key Usage select Digital Signature, Key Encipherment
   19. Under Extended Key Usage select Web Server and Web Client Authentication
   20. Click the Netscape tab
   21. Select SSL Server
   22. Click OK to create the certificate
 
Exporting Required Files
   01. In XCA, click on the Certificates tab
   02. Right click the SSL certificate ≫ Export ≫ File
   03. Set the file name with a .crt extension and verify the export format is PKCS #12 (*.p12)
   04. Enter the password subsonic and confirm, Click OK
   05. Click OK
 
Installing Subsonic and Initial Setup
   01. Download Subsonic  https://sourceforge.net/projects/subsonic/files/subsonic/6.1.6/subsonic-6.1.6-setup.exe/download
   02. Install Subsonic
   03. Open a web browser and navigate to http://DNSorIP:Port
   04. Login with username: admin password: admin
   05. Go to Settings ≫ Users
   06. Check the Change Password box
   07. Input a new password twice and click save to secure the admin account
   08. Go to Settings ≫ Media Folders
   09. Under the Add media folder heading add your music directory
   10. Click the Save button
   11. Click the Scan media folders now button
   12. Click the Home button in the top navigation
   13. You should see music from your library starting to populate
 
Applying the SSL Certificates to Subsonic
   01. Stop the Subsonic service
   02. Right click the start button ≫ Command Prompt (Admin)
   03. Run the following command
taskkill /f /im "subsonic-agent-elevated.exe"
   04. Navigate to the Subsonic installation directory in Explorer
   05. Extract subsonic-booter-jar-with-dependencies.jar
   06. Download Keystore Explorer  https://keystore-explorer.org/downloads.html
   07. Run kse.exe
   08. Select File ≫ Open ≫ and select subsonic.keystore from the extracted jar
   09. Enter subsonic as the keystore password
   10. Delete the subsonic entry, this is the self-signed SSL certificate used for https by default
   11. Select Tools ≫ Import Key Pair
   12. Select PKCS #12, Click OK
   13. Click Browse and navigate to the .p12 file exported from XCA earlier
   14. Enter subsonic as the Decryption password
   15. Enter subsonic as the alias, click OK
   16. Enter subsonic as the password and confirm, click OK
   17. Select File ≫ Save
   18. Navigate to the extracted jar files in Explorer
   19. Select all the files ≫ Right Click ≫ Send To ≫ Compressed (zipped) folder
   20. Rename the zip file created subsonic-booter-jar-with-dependencies.jar
   21. Right click the created subsonic-booter-jar-with-dependencies.jar ≫ Copy
   22. Navigate to the Subsonic installation directory in Explorer
   23. Renamed the existing subsonic-booter-jar-with-dependencies.jar to subsonic-booter-jar-with-dependencies.jar.orig
   24. Paste the newly created subsonic-booter-jar-with-dependencies.jar
   25. Right click subsonic-agent-elevated.exe ≫ Run as administrator
   26. If it doesn't show, double click the Subsonic icon in the system tray
   27. Click the Settings tab
   28. Check the Enable https on port box
   29. Enter a port to run https on
   30. Click the Save settings button
   31. Click the Status tab
   32. Click the Start button to start the Subsonic service
   33. Open a web browser and navigate to https://DNSorIP:Port
   34. Subsonic should now be running securely with https using the new certificate
 


### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro







Tags:
Airsonic
Apache Tomcat
Browser Based
Certificate Authority
Certificates
Generating SSL Certificates
HTTPS
Home Lab
How To
Install Guide
MP3
Media Server
Media Streamer
Microsoft
Music
PKI
SSL
Self-Hosted
Self-Signed Certificates
Self-Signed PKI
Self-hosted
Streaming
Subsonic
Tomcat
Tutorial
Web Based
Web Based Tools
Windows
X Certificate And Key Management
XCA
i12bretro