Page 1 of 1

Addurl API HTTPS problem

Posted: February 16th, 2013, 12:40 pm
by packetstormer
Could anyone suggest why I can't add HTTPS URLs in Sab? If I use the GUI and add URL https://...... the addition fails (even though the site is there running under HTTPS). However, if I drop the "s" and just plan http://..... then the URL gets fetched and added correctly. The same problem exists with the API.

I wonder if there is an underlying python module needed to fetch a HTTPS URL?

Re: Addurl API HTTPS problem

Posted: February 16th, 2013, 12:49 pm
by shypike
Which OS are you using?
If you installed it DIY, then you need to install PyOpenSSL.

Re: Addurl API HTTPS problem

Posted: February 16th, 2013, 12:54 pm
by packetstormer
shypike wrote:Which OS are you using?
If you installed it DIY, then you need to install PyOpenSSL.
Yes, its an embedded device running on a satellite receiver - I guess I will need OpenSSL so, thank.

Re: Addurl API HTTPS problem

Posted: February 16th, 2013, 1:00 pm
by packetstormer
Actually, just checked and python-openssl is already installed!?

Re: Addurl API HTTPS problem

Posted: February 16th, 2013, 1:02 pm
by packetstormer
Also, I think the URL site I am using is using a self signed certificate, maybe Sab cannot verify it. Is there any switch I can use to ignore unknown SSL certificates?

Re: Addurl API HTTPS problem

Posted: February 16th, 2013, 2:45 pm
by shypike
SABnzbd generates it own self-signed certificate. Real ones cost money.
Firefox allows you to store an exception for a self-signed certificate permanently.
Less versatile ones like Chrome, IE and Safari insist on pestering you about it.

Re: Addurl API HTTPS problem

Posted: February 16th, 2013, 3:20 pm
by packetstormer
shypike wrote:SABnzbd generates it own self-signed certificate. Real ones cost money.
Firefox allows you to store an exception for a self-signed certificate permanently.
Less versatile ones like Chrome, IE and Safari insist on pestering you about it.
I mean the remote URL, not the Sab URL. The indexing site is generating its own SSL cert. I don't know Python but with some other languages, for certain SSL libraries, you can override (ignore) a remote site's self signed certificate, if it can't verify it. I was just wondering if Sab could do the same or if something else entirley is the problem. Mind you, pasting the exact URL into a browser does fetch the nzb correctly.

Re: Addurl API HTTPS problem

Posted: February 17th, 2013, 3:52 am
by shypike
Python's http library does not check certificates.

Re: Addurl API HTTPS problem

Posted: February 17th, 2013, 5:29 am
by packetstormer
Strange -- this is what the SabNZBd log shows after I pass it the URL:

2013-02-17 10:23:54,822::DEBUG::[urlgrabber:351] No response from indexer, retry after 60 sec

If I pass the same URL into a browser (any browser) it gets the nzb fine - any suggestions?