123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <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" />
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript">
- $(function(){
- $('textarea').each(function(i,e){
- theTextarea = $(this);
- theTextarea.height((theTextarea[0].scrollHeight-5) +'px');
- });
- $('li').each(function(i,e){
- var uuid = 'li_' + Math.floor(Math.random() * Math.floor(1000000)).toString() + '_' + i.toString();
- $(this).contents().wrap('<span id="'+ uuid +'"><label for="cb_'+ uuid +'"></label></span>');
- $(this).prepend('<input type="checkbox" class="completeBox" id="cb_' + uuid +'" rel="'+ uuid +'" />')
- });
- $('code,div.codeBlock,textarea.codeBlock').each(function(i,e){
- theElement = $(this);
- var lines = theElement.html().split("\n");
- theElement.empty();
- for(l=0;l<lines.length;l++){
- if($.trim(lines[l]) != '' && $.trim(lines[l]).substr(0,1) != '#' && $.trim(lines[l]).indexOf(' #') == -1 && lines[l].substr(0, 4).toUpperCase() != 'REM '){
- theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ lines[l].replace(/"/g, '"') +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
- } else {
- theElement.append(lines[l]);
- }
- }
- });
- $(document).on('click','input.copy-text',function(){
- theButton = $(this);
- $('input.copy-text').attr('src','images/clipboard.png');
- $('span.copy-animation').removeClass('copy-animation');
- try {
- $('#'+ theButton.attr('rel')).addClass('copy-animation');
- navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
- theButton.attr('src','images/clipboard_active.png');
- } catch(err) {
- }
- return false;
- });
- $(document).on('click','input.completeBox',function(){
- theBox = $(this);
- $('#'+ theBox.attr('rel')).addClass('strikethrough');
- theBox.prop('disabled',true);
- theBox.parent('li').prevAll().each(function(i,e){
- theLI = $(this);
- if(theLI.find('input[type=checkbox]').not(':checked')){
- $('#'+ theLI.find('input[type=checkbox]').attr('rel')).addClass('strikethrough');
- theLI.find('input[type=checkbox]').prop('checked',true).prop('disabled',true);
- }
- });
- });
- if(window.self !== window.top){
- window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
- }
- });
- </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>
-
|