https with self created certificates not working on Synology

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
Kopierwichtel
Newbie
Newbie
Posts: 3
Joined: April 24th, 2014, 12:56 pm

https with self created certificates not working on Synology

Post by Kopierwichtel »

Hello,

I'm using SABnzbd for a few weeks now and am very happy with it. I installed it on my Synology NAS and without self created certifcates its working. Suddenly i get the "default" warning when using the certs. So i created new own certifcates with the correct common name, ... I copied it to the folder /usr/local/sabnzbd/var/admin and referenced it in the config.

Now the problem: I'm not able to restart the service on my NAS. I get the following error:

Code: Select all

2014-04-15 22:58:55,481: :INFO::[SABnzbd: 464 ) _ye nc module „. found!
2014-04-15 22: 58: 55,482:: INFO: :[SABnzbd: 472) par2 binary „. found (/usr/ local/ sabnzbd/ bin/ par2)
2014-04-15 22: 58: 55,483:: INFO: :[SABnzbd: 480) unrar binary „. found (/usr/ local/ sabnzbd/ bin/ unrar)
2014-04-15 22: 58: 55,484:: INFO: :[SABnzbd: 485) unzip binary „. found (/usr/ syno/ bin/ unzip)
2014-04-15 22: 58: 55,485:: INFO: :[SABnzbd: 491) nice binary „. found (/usr/ local/ sabnzbd/ bin/ nice)
2014-04-15 22: 58: 55,486:: INFO: :[SABnzbd: 497) ionice binary „. NOT found !
2014-04-15 22: 58: 55,487 :: INFO: :[SABnzbd: 500) pyOpenSSL.„ found (True)
2014-04-15 22:58:55,496: :INFO: :[SABnzbd: 1489) Starting web-interface on 0 .0 .0 .0:9090
2014-04-15 22: 58: 55,498:: INFO: :[_cplogging: 55) [ 15/ Apr/ 2014: 22: 58: 55) ENGINE Bus STARTING
2014-04-15 22: 58: 55,514:: INFO: :[_cplogging: 55) [ 15/ Apr/ 2014: 22: 58: 55) ENGINE Started monitor thread '_ TimeoutMonitor'.
2014-04-15 22: 58: 55,618:: INFO: :[_cplogging: 55) [ 15/ Apr/ 2014: 22: 58: 55) ENGINE Serving on 0 .0 .0 .0: 8080
2014-04-15 22: 58: 55,624:: ERROR:: [_cplogging: 55) [ 15/ Apr/ 2014: 22: 58: 55) ENGINE Error in HTIP serve r: shutting d>wn
Traceback (most recent call last):
File "/ volumel/ @appstore/ sabnzbd/ share/ SABnzbd/ cherrypy/ process/ serve rs .py", line 75, in _start_ http_thread
self.httpserve r.start()
File "/ volumel/ @appstore/ sabnzbd/ share/ SABnzbd/ cherrypy/ wsgiserve r/ _ init_ .py", line 1636, in start
self.bind(af, socktype, proto)
File "/ volumel/ @appstore/ sabnzbd/ share/ SABnzbd/ cherrypy/ wsgiserve r/ _ init_ .py", line 1678, in bind
self.ssl_context.use_privateke y_fi le (self.ssl_private_key)
Error: [('PEM routines', 'PEM_read_bio', 'no start line'), ('SSL routines', 'SSL_CTX_use_PrivateKey_file', 'PEM lib')]
2014-04-15 22: 58: 55,625:: INFO: :(_cplogging: 55) ( 15/ Apr/ 2014: 22: 58: 55) ENGINE Bus STOPPING
2014-04-15 22:58:55,625: :INFO: :[_cplogging:55) [ 15/Apr/ 2014:22:58:55) ENGINE HTIP Server cherrypy._cpwsgi_serve r.CPWSGIServe r(('0 .0 .0 .0', 9090)) a lready shut down
2014-04-15 22:58:55,631: :INFO: :[_cplogging:55) [ 15/Apr/ 2014:22:58:55) ENGINE HTIP Server cherrypy._cpwsgi_serve r.CPWSGIServe r(('0 .0 .0 .0', 8080)) shut down
2014-04-15 22: 58: 55,64 1:: INFO: :[_cplogging: 55) [ 15/ Apr/ 2014: 22: 58: 55) ENGINE Stopped thread '_ TimeoutMonitor'.
2014-04-15 22: 58: 55,64 2:: INFO: :(_cplogging: 55) ( 15/ Apr/ 2014: 22: 58: 55) ENGINE Bus STOPPED
2014-04-15 22: 58: 55,64 2:: INFO: :[_cplogging: 55) [ 15/ Apr/ 2014: 22: 58: 55) ENGINE Bus EXITING
2014-04-15 22: 58: 55,643:: INFO: :[_cplogging: 55) [ 15/ Apr/ 2014: 22: 58: 55) ENGINE Bus EX!TED
2014-04-15 22: 58: 55, 724:: ERROR:: [_cplogging: 55) [ 15/ Apr/ 2014: 22: 58: 55) ENGINE Error in 'start' listener >
Traceback (most recent call last):
File "/ volumel/ @appstore/ sabnzbd/ share/ SABnzbd/ cherrypy/ process/ wspbus.py", line 147, in publish
output.oppcnd( listcncr("'o rgs, '"''"'kwo rgs))
File "/ volumel/ @appstore/ sabnzbd/ share/ SABnzbd/ cherrypy/ _cpserve r.py", line 90, in start
ServerAdapter.start(self)
File "/ volumel/ @appstore/ sabnzbd/ share/ SABnzbd/ cherrypy/ process/ serve rs .py", line 62, in start
self.wa it()
File "/ volume l / @appstore/ sabnzbd/ share/ SABnzbd/ cherrypy/ process/ serve rs .py", line 97, in wa it
raise self.interrupt
Error: [('PEM routines', 'PEM_read_bio', 'no start line'), ('SSL routines', 'SSL_CTX_use_PrivateKey_file', 'PEM lib')]
2014-04-15 22: 58: 55, 727 :: ERROR:: [_cplogging: 55) [ 15/ Apr/ 2014: 22: 58: 55) ENGINE Shutting down due to e rror in st•rt listener:
Traceback (most recent call last):
File "/ volumel/ @appstore/ sabnzbd/ share/ SABnzbd/ cherrypy/ process/ wspbus.py", line 184, in start
seif .publish(' start')
File "/ volumel/ @appstore/ sabnzbd/ share/ SABnzbd/ cherrypy/ process/ wspbus.py", line 147, in publish
output.append(listener(*args, ~*kwa rgs))
File "/ volumel/ @appstore/ sabnzbd/ share/ SABnzbd/ cherrypy/ _cpserve r.py", line 90, in start
ServerAdapter.start(self)
File "/ volumel/ @appstore/ sabnzbd/ share/ SABnzbd/ cherrypy/ process/ serve rs .py", line 62, in start
self.wa it()
File "/ volume l / @appstore/ sabnzbd/ share/ SABnzbd/ cherrypy/ process/ serve rs .py", line 97, in wa it
raise self.interrupt
Error: [('PEM routines', 'PEM_read_bio', 'no start line'), ('SSL routines', 'SSL_CTX_use_PrivateKey_file', 'PEM lib')]
2014-04-15 22: 58: 55, 728:: INFO: :(_cplogging: 55) ( 15/ Apr/ 2014: 22: 58: 55) ENGINE Bus STOPPING
2014-04-15 22:58:55,729: :INFO: :[_cplogging:55) [ 15/Apr/ 2014:22:58:55) ENGINE HTIP Server cherrypy._cpwsgi_serve r.CPWSGIServe r(('0 .0 .0 .0', 9090)) a lready shut down
2014-04-15 22:58:55,730: :INFO: :[_cplogging:55) [ 15/Apr/ 2014:22:58:55) ENGINE HTIP Server cherrypy._cpwsgi_serve r.CPWSGIServe r(('0 .0 .0 .0', 8080)) a lready shut down
2014-04-15 22: 58: 55, 730:: INFO: :[_cplogging: 55) [ 15/ Apr/ 2014: 22: 58: 55) ENGINE No thread running for _ TimeoutMonitor.
2014-04-15 22:58:55,73l::INFO::(_cplogging:55) (15/Apr/ 2014:22:58:55) ENGINE Bus STOPPED
2014-04-15 22: 58: 55, 732:: INFO: :[_cplogging: 55) [ 15/ Apr/ 2014: 22: 58: 55) ENGINE Bus EXITING
2014-04-15 22: 58: 55, 733:: INFO: :[_cplogging: 55) [ 15/ Apr/ 2014: 22: 58: 55) ENGINE Bus EX!TED
2014-04-15 22:58:55,734: :ERROR: :(SABnzbd: 1510) Failed to start web-interface:
Tra.ce.back (mo~cent call last):
Here my system details:

Version: 0.7.17-8
Install-Type NAS Package
Skin: Default
Firewall: Windows Firewall
IPV6: no
Reproducable: yes
NAS: DS2413+ incl DSM 5.0 4458 Update 2

I used OpenSSL 1.0.1g to create my certs on my windows system.
I followed the instruction from this youtube video to create them: http://www.youtube.com/watch?v=MyCCEosX7jw

It would be great if you can help me. Or is it a bug?

Thanks

Kopierwichtel
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: https with self created certificates not working on Syno

Post by shypike »

If you remove the certificates, SABnzbd will create new ones.
Kopierwichtel
Newbie
Newbie
Posts: 3
Joined: April 24th, 2014, 12:56 pm

Re: https with self created certificates not working on Syno

Post by Kopierwichtel »

Sorry, i think there was a misunderstanding. Your recommendation is wokring, but then the default certs are recreated.

I want to use my own certficates incl. the correct commonname, adress, ...
When using the default certs everything is working, only my own certs are preventing sabnzbd to start.

I think i made a mistake while creating the certs, because on my windows installation its was working the 1st time and now its also not working.

I will recreate the certs and then let you know
Kopierwichtel
Newbie
Newbie
Posts: 3
Joined: April 24th, 2014, 12:56 pm

Re: https with self created certificates not working on Syno

Post by Kopierwichtel »

I recreated my certs and now its working perfectly with SABnzbd.

I missed the -nodes statement while create the keys.
Post Reply