Addurl API HTTPS problem

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
packetstormer
Newbie
Newbie
Posts: 14
Joined: September 17th, 2010, 9:49 am

Addurl API HTTPS problem

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Addurl API HTTPS problem

Post by shypike »

Which OS are you using?
If you installed it DIY, then you need to install PyOpenSSL.
packetstormer
Newbie
Newbie
Posts: 14
Joined: September 17th, 2010, 9:49 am

Re: Addurl API HTTPS problem

Post 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.
packetstormer
Newbie
Newbie
Posts: 14
Joined: September 17th, 2010, 9:49 am

Re: Addurl API HTTPS problem

Post by packetstormer »

Actually, just checked and python-openssl is already installed!?
packetstormer
Newbie
Newbie
Posts: 14
Joined: September 17th, 2010, 9:49 am

Re: Addurl API HTTPS problem

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Addurl API HTTPS problem

Post 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.
packetstormer
Newbie
Newbie
Posts: 14
Joined: September 17th, 2010, 9:49 am

Re: Addurl API HTTPS problem

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Addurl API HTTPS problem

Post by shypike »

Python's http library does not check certificates.
packetstormer
Newbie
Newbie
Posts: 14
Joined: September 17th, 2010, 9:49 am

Re: Addurl API HTTPS problem

Post 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?
Post Reply