Custom SSL certificate from commercial CA
I know there a few threads out there regarding this, but none have a solution that I can make work.
I run Subsonic premium on Debian (not Ubuntu).
I run my own domain, etc. and wanted a CA-signed cert so I will stop getting the navigation and cert-acceptance errors in web browsers when I am out and about.
I got a CA-signed cert and chain (host, intermediate, root certificates) and made a Java keystore for it.
I used this process to build the keystore after uploading the certificates:
Once that was done, I updated /usr/bin/subsonic with the following:
I restarted and the service came to life and the ports opened, as verified with netstat.
I was not, however, ever able to connect to Subsonic. I would navigate to port 80 (HTTP redirect to HTTPS) or to port 500 (what I have defined for HTTPS) and it would just clock and do nothing. Redirect was successful but nothing ever came up.
In the /var/subsonic/subsonic_sh.log, I see a LOT of this type of messaging:
I have attached my configuration files and the subsonic_sh.log file from both the regular configuration (which is still working) and with my custom certificate.
If anyone can provide any guidance on this, I will be greatly appreciative. If anyone needs more information, please let me know that as well.
Thanks in advance,
~Jeff
NOTE: The failure log was too big to upload, so I truncated it. I removed 17MB of information like the quote above.
I run Subsonic premium on Debian (not Ubuntu).
I run my own domain, etc. and wanted a CA-signed cert so I will stop getting the navigation and cert-acceptance errors in web browsers when I am out and about.
I got a CA-signed cert and chain (host, intermediate, root certificates) and made a Java keystore for it.
I used this process to build the keystore after uploading the certificates:
- Code: Select all
# keytool -import -trustcacerts -alias root -file ./ca.pem -keystore /etc/ssl/certs/subsonic.keystore -storepass XXXXXX -keypass XXXXXX
Certificate already exists in system-wide CA keystore under alias <startcom_certification_authority>
Do you still want to add it to your own keystore? [no]: y
Certificate was added to keystore
# keytool -import -trustcacerts -alias intermediate -file ./sub.class1.server.ca.pem -keystore /etc/ssl/certs/subsonic.keystore -storepass XXXXXX -keypass XXXXXX
Certificate was added to keystore
# keytool -import -trustcacerts -alias subsonic -file ./ssl.crt -keystore /etc/ssl/certs/subsonic.keystore -storepass XXXXXX -keypass XXXXXX
Certificate was added to keystore
Once that was done, I updated /usr/bin/subsonic with the following:
- Code: Select all
-Dsubsonic.ssl.keystore=/etc/ssl/certs/subsonic.keystore \
-Dsubsonic.ssl.password=XXXXXX \
I restarted and the service came to life and the ports opened, as verified with netstat.
I was not, however, ever able to connect to Subsonic. I would navigate to port 80 (HTTP redirect to HTTPS) or to port 500 (what I have defined for HTTPS) and it would just clock and do nothing. Redirect was successful but nothing ever came up.
In the /var/subsonic/subsonic_sh.log, I see a LOT of this type of messaging:
- Code: Select all
[Full GC 196381K->62608K(209240K), 0.0777280 secs]
[GC 75408K->75104K(205400K), 0.0035290 secs]
[GC 87902K->87468K(205400K), 0.0044370 secs]
[GC 100268K->98435K(205400K), 0.0041790 secs]
[GC 111235K->110832K(205400K), 0.0041160 secs]
[GC 123632K->123195K(205400K), 0.0044070 secs]
[GC 135983K->135591K(205400K), 0.0045810 secs]
[GC 148391K->147989K(205400K), 0.0042200 secs]
[GC 160789K->158973K(205400K), 0.0041530 secs]
[GC 171773K->169787K(205400K), 0.0037440 secs]
[GC 182587K->182251K(205400K), 0.0043540 secs]
[GC 195047K->194614K(207448K), 0.0049600 secs]
I have attached my configuration files and the subsonic_sh.log file from both the regular configuration (which is still working) and with my custom certificate.
If anyone can provide any guidance on this, I will be greatly appreciative. If anyone needs more information, please let me know that as well.
Thanks in advance,
~Jeff
NOTE: The failure log was too big to upload, so I truncated it. I removed 17MB of information like the quote above.