Page 1 of 1

https with certificates

Posted: February 25th, 2012, 11:34 am
by starsys
Hello. I've currently working certificates running on my synology NAS. Ex : https://subdomain.mydomain.fr
I'm trying to make them working with sabnzbd : https://subdomain.mydomain.fr:9090

I've made :

cp /usr/syno/etc/ssl/ssl.key/server.key /usr/syno/etc/ssl/ssl.crt/server.crt /usr/local/var/sabnzbd/
chown sabnzbd:users /usr/local/var/sabnzbd/server.*

I changed the paths in the webui of sabnzbd :

/usr/local/var/sabnzbd/server.key
/usr/local/var/sabnzbd/server.crt

I saved and rebooted.
Then I tried : https://subdomain.mydomain.fr:9090 it doesn't work.
Sabnzbd service is stopped in my running process and I cannot start it again.

The only way to repair it, is deleting / moving the files
/usr/local/var/sabnzbd/server.key
/usr/local/var/sabnzbd/server.crt

Can anyone help me correcting this failure ? Thanks.

Re: https with certificates

Posted: February 25th, 2012, 1:06 pm
by shypike
Did it work before with the default certificates?
Run SABnzbd from a terminal ssh sesssion so you will see its output.

Re: https with certificates

Posted: February 25th, 2012, 1:31 pm
by starsys
Hello. It works with the defauls certificates (with a security warning of course).
Can you just tell me the commad to run sabnzb in a ssh sessions ? (I've never tried it).
Thanks

Re: https with certificates

Posted: February 25th, 2012, 5:17 pm
by starsys
I tried to type : SABnzbd.py in /usr/local/sabnzbd/share/SABnzbd but it doesn't work.
What is the right syntax to run sabnzbd in terminal ?

Re: https with certificates

Posted: February 25th, 2012, 5:34 pm
by starsys
It doesn't work anymore on https with port 9090...
I don't understand what happen

Re: https with certificates

Posted: February 26th, 2012, 2:55 am
by starsys
can anyone help me runnning sabnzbd in https 0.6.15 again ?
Thanks.

Re: https with certificates

Posted: February 26th, 2012, 3:18 am
by starsys
I just wrote server.key and server.cert and it worked again.
I think I won't try anymore to install my own certificates... It doesn't work.

Re: https with certificates

Posted: February 26th, 2012, 5:06 am
by shypike
I'm not familiar with the wonderful world of certificates myself.
The code supporting it was contributed by a former team member.
That's also the reason we have hardly and supporting documentation for it.
Generally people who try this sort of thing put SABnzbd behind an Apache server
that takes care of the SSL layer.