123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Installing and Setting Up SSL for Subsonic on Windows</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Windows,Subsonic,Media Streamer,Self-hosted,MP3,SSL,PKI,Tomcat">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Installing and Setting Up SSL for Subsonic on Windows">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Installing and Setting Up SSL for Subsonic on Windows</h1>
- </div>
- <div></div>
- <div id="content">
- <h2>Create Your SSL Certificate</h2>
- <ol>
- <li>Launch XCA</li>
- <li>Open the PKI database if it is not already (File > Open DataBase), enter password</li>
- <li>Click on the Certificates tab, right click on your Intermediate CA certificate</li>
- <li>Select New</li>
- <li>On the Source tab, make sure Use this Certificate for signing is selected</li>
- <li>Verify your Intermediate CA certificate is selected from the drop down</li>
- <li>Click the Subject tab</li>
- <li>Complete the Distinguished Name section
- <p>internalName: Subsonic SSL<br />
- countryName: US<br />
- stateOrProvinceName: Virginia<br />
- localityName: Northern<br />
- organizationName: i12bretro<br />
- organizationUnitName: i12bretro Certificate Authority<br />
- commonName: subsonic.i12bretro.local</p>
- </li>
- <li>Click the Generate a New Key button</li>
- <li>Enter a name and set the key size to at least 2048</li>
- <li>Click Create</li>
- <li>Click on the Extensions tab</li>
- <li>Select End Entity from the type list</li>
- <li>Click Edit next to Subject Alternative Name</li>
- <li>Add any DNS or IP addresses that the certificate will identify</li>
- <li>Update the validity dates to fit your needs</li>
- <li>Click the Key Usage tab</li>
- <li>Under Key Usage select Digital Signature, Key Enchiperment</li>
- <li>Under Extended Key Usage select Web Server and Web Client Authentication</li>
- <li>Click the Netscape tab</li>
- <li>Select SSL Server</li>
- <li>Click OK to create the certificate</li>
- </ol>
- <h2>Exporting Required Files</h2>
- <ol>
- <li>In XCA, click on the Certificates tab</li>
- <li>Right click the SSL certificate > Export > File</li>
- <li>Set the file name with a .crt extension and verify the export format is PKCS #12 (*.p12)</li>
- <li>Enter the password subsonic and confirm, Click OK</li>
- <li>Click OK</li>
- </ol>
- <h2>Installing Subsonic and Initial Setup</h2>
- <ol>
- <li>Download Subsonic <a href="https://sourceforge.net/projects/subsonic/files/subsonic/6.1.6/subsonic-6.1.6-setup.exe/download" target="_blank">Download</a></li>
- <li>Install Subsonic</li>
- <li>Open a web browser and navigate to http://DNSorIP:Port</li>
- <li>Login with username: admin password: admin</li>
- <li>Go to Settings > Users</li>
- <li>Check the Change Password box</li>
- <li>Input a new password twice and click save to secure the admin account</li>
- <li>Go to Settings > Media Folders</li>
- <li>Under the Add media folder heading add your music directory</li>
- <li>Click the Save button</li>
- <li>Click the Scan media folders now button</li>
- <li>Click the Home button in the top navigation</li>
- <li>You should see music from your library starting to populate</li>
- </ol>
- <h2>Applying the SSL Certificates to Subsonic</h2>
- <ol>
- <li>Stop the Subsonic service</li>
- <li>Right click the start button > Command Prompt (Admin)</li>
- <li>Run the following command<br />
- taskkill /f /im "subsonic-agent-elevated.exe"</li>
- <li>Navigate to the Subsonic installation directory in Explorer</li>
- <li>Extract subsonic-booter-jar-with-dependencies.jar</li>
- <li>Download Keystore Explorer <a href="https://keystore-explorer.org/downloads.html" target="_blank">Download</a></li>
- <li>Run kse.exe</li>
- <li>Select File > Open > and select subsonic.keystore from the extracted jar</li>
- <li>Enter subsonic as the keystore password</li>
- <li>Delete the subsonic entry, this is the self-signed SSL certificate used for https by default</li>
- <li>Select Tools > Import Key Pair</li>
- <li>Select PKCS #12, Click OK</li>
- <li>Click Browse and navigate to the .p12 file exported from XCA earlier</li>
- <li>Enter subsonic as the Decryption password</li>
- <li>Enter subsonic as the alias, click OK</li>
- <li>Enter subsonic as the password and confirm, click OK</li>
- <li>Select File > Save</li>
- <li>Navigate to the extracted jar files in Explorer</li>
- <li>Select all the files > Right Click > Send To > Compressed (zipped) folder</li>
- <li>Rename the zip file created subsonic-booter-jar-with-dependencies.jar</li>
- <li>Right click the created subsonic-booter-jar-with-dependencies.jar > Copy</li>
- <li>Navigate to the Subsonic installation directory in Explorer</li>
- <li>Renamed the existing subsonic-booter-jar-with-dependencies.jar to subsonic-booter-jar-with-dependencies.jar.orig</li>
- <li>Paste the newly created subsonic-booter-jar-with-dependencies.jar</li>
- <li>Right click subsonic-agent-elevated.exe > Run as administrator</li>
- <li>If it doesn't show, double click the Subsonic icon in the system tray</li>
- <li>Click the Settings tab</li>
- <li>Check the Enable https on port box</li>
- <li>Enter a port to run https on</li>
- <li>Click the Save settings button</li>
- <li>Click the Status tab</li>
- <li>Click the Start button to start the Subsonic service</li>
- <li>Open a web browser and navigate to https://DNSorIP:Port</li>
- <li>Subsonic should now be running securely with https using the new certificate</li>
- </ol>
- </div>
- </div>
- </body>
- </html>
-
|