0057.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Installing and Setting Up SSL for Subsonic on Windows</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Windows,Subsonic,Media Streamer,Self-hosted,MP3,SSL,PKI,Tomcat">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Installing and Setting Up SSL for Subsonic on Windows">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  12. <script type="text/javascript" src="includes/js/steps.js"></script>
  13. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  14. </head>
  15. <body>
  16. <div id="gridContainer">
  17. <div class="topMargin"></div>
  18. <div id="listName" class="topMargin">
  19. <h1>Installing and Setting Up SSL for Subsonic on Windows</h1>
  20. </div>
  21. <div></div>
  22. <div id="content">
  23. <h2>Create Your SSL Certificate</h2>
  24. <ol>
  25. <li>Launch XCA</li>
  26. <li>Open the PKI database if it is not already (File &gt; Open DataBase), enter password</li>
  27. <li>Click on the Certificates tab, right click on your Intermediate CA certificate</li>
  28. <li>Select New</li>
  29. <li>On the Source tab, make sure Use this Certificate for signing is selected</li>
  30. <li>Verify your Intermediate CA certificate is selected from the drop down</li>
  31. <li>Click the Subject tab</li>
  32. <li>Complete the Distinguished Name section
  33. <p>internalName: Subsonic SSL<br />
  34. countryName: US<br />
  35. stateOrProvinceName: Virginia<br />
  36. localityName: Northern<br />
  37. organizationName: i12bretro<br />
  38. organizationUnitName: i12bretro Certificate Authority<br />
  39. commonName: subsonic.i12bretro.local</p>
  40. </li>
  41. <li>Click the Generate a New Key button</li>
  42. <li>Enter a name and set the key size to at least 2048</li>
  43. <li>Click Create</li>
  44. <li>Click on the Extensions tab</li>
  45. <li>Select End Entity from the type list</li>
  46. <li>Click Edit next to Subject Alternative Name</li>
  47. <li>Add any DNS or IP addresses that the certificate will identify</li>
  48. <li>Update the validity dates to fit your needs</li>
  49. <li>Click the Key Usage tab</li>
  50. <li>Under Key Usage select Digital Signature, Key Enchiperment</li>
  51. <li>Under Extended Key Usage select Web Server and Web Client Authentication</li>
  52. <li>Click the Netscape tab</li>
  53. <li>Select SSL Server</li>
  54. <li>Click OK to create the certificate</li>
  55. </ol>
  56. <h2>Exporting Required Files</h2>
  57. <ol>
  58. <li>In XCA, click on the Certificates tab</li>
  59. <li>Right click the SSL certificate &gt; Export &gt; File</li>
  60. <li>Set the file name with a .crt extension and verify the export format is PKCS #12 (*.p12)</li>
  61. <li>Enter the password subsonic and confirm, Click OK</li>
  62. <li>Click OK</li>
  63. </ol>
  64. <h2>Installing Subsonic and Initial Setup</h2>
  65. <ol>
  66. <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>
  67. <li>Install Subsonic</li>
  68. <li>Open a web browser and navigate to http://DNSorIP:Port</li>
  69. <li>Login with username: admin password: admin</li>
  70. <li>Go to Settings &gt; Users</li>
  71. <li>Check the Change Password box</li>
  72. <li>Input a new password twice and click save to secure the admin account</li>
  73. <li>Go to Settings &gt; Media Folders</li>
  74. <li>Under the Add media folder heading add your music directory</li>
  75. <li>Click the Save button</li>
  76. <li>Click the Scan media folders now button</li>
  77. <li>Click the Home button in the top navigation</li>
  78. <li>You should see music from your library starting to populate</li>
  79. </ol>
  80. <h2>Applying the SSL Certificates to Subsonic</h2>
  81. <ol>
  82. <li>Stop the Subsonic service</li>
  83. <li>Right click the start button &gt; Command Prompt (Admin)</li>
  84. <li>Run the following command<br />
  85. taskkill /f /im &quot;subsonic-agent-elevated.exe&quot;</li>
  86. <li>Navigate to the Subsonic installation directory in Explorer</li>
  87. <li>Extract subsonic-booter-jar-with-dependencies.jar</li>
  88. <li>Download Keystore Explorer <a href="https://keystore-explorer.org/downloads.html" target="_blank">Download</a></li>
  89. <li>Run kse.exe</li>
  90. <li>Select File &gt; Open &gt; and select subsonic.keystore from the extracted jar</li>
  91. <li>Enter subsonic as the keystore password</li>
  92. <li>Delete the subsonic entry, this is the self-signed SSL certificate used for https by default</li>
  93. <li>Select Tools &gt; Import Key Pair</li>
  94. <li>Select PKCS #12, Click OK</li>
  95. <li>Click Browse and navigate to the .p12 file exported from XCA earlier</li>
  96. <li>Enter subsonic as the Decryption password</li>
  97. <li>Enter subsonic as the alias, click OK</li>
  98. <li>Enter subsonic as the password and confirm, click OK</li>
  99. <li>Select File &gt; Save</li>
  100. <li>Navigate to the extracted jar files in Explorer</li>
  101. <li>Select all the files &gt; Right Click &gt; Send To &gt; Compressed (zipped) folder</li>
  102. <li>Rename the zip file created subsonic-booter-jar-with-dependencies.jar</li>
  103. <li>Right click the created subsonic-booter-jar-with-dependencies.jar &gt; Copy</li>
  104. <li>Navigate to the Subsonic installation directory in Explorer</li>
  105. <li>Renamed the existing subsonic-booter-jar-with-dependencies.jar to subsonic-booter-jar-with-dependencies.jar.orig</li>
  106. <li>Paste the newly created subsonic-booter-jar-with-dependencies.jar</li>
  107. <li>Right click subsonic-agent-elevated.exe &gt; Run as administrator</li>
  108. <li>If it doesn&#39;t show, double click the Subsonic icon in the system tray</li>
  109. <li>Click the Settings tab</li>
  110. <li>Check the Enable https on port box</li>
  111. <li>Enter a port to run https on</li>
  112. <li>Click the Save settings button</li>
  113. <li>Click the Status tab</li>
  114. <li>Click the Start button to start the Subsonic service</li>
  115. <li>Open a web browser and navigate to https://DNSorIP:Port</li>
  116. <li>Subsonic should now be running securely with https using the new certificate</li>
  117. </ol>
  118. </div>
  119. </div>
  120. </body>
  121. </html>