SSL WebUI Setup

General support for problems installing or using Deluge
Post Reply
Kwb
Member
Member
Posts: 27
Joined: Sun May 31, 2009 2:49 pm

SSL WebUI Setup

Post by Kwb »

Hi there!
I tried following the guide in the faqs but it isn't working. Moreover it seems I have no apache installed because on this page ( http://httpd.apache.org/docs/2.0/ssl/ss ... l#selfcert ) at point 2, when it says:
These can be used as follows in your httpd.conf file:

SSLCertificateFile /path/to/this/server.crt
SSLCertificateKeyFile /path/to/this/server.key
I don't have any httpd.conf file in the default location ( /etc/httpd/httpd.conf ), there's no httpd folder at all... However I tried following the procedure but it doesn't work either.
I tried renaming my certificates as daemon.cert and daemon.pkey ( saving the old ones!! ) but at this point I can't even connect with the daemon through webUI via http. Https tiemouts in all the cases.
What's wrong?
andy0

Re: SSL WebUI Setup

Post by andy0 »

From the FAQ:
Create (self-signed) ssl certificates: http://httpd.apache.org/docs/2.0/ssl/ss ... l#selfcert
** My deluge install already had key files in it, Debian 6 - latest Deluge & Deluge-web

Linux - Put deluge.cert.pem and deluge.key.pem in ~/.config/deluge/ssl/
Windows - Put deluge.cert.pem and deluge.key.pem in %APPDATA%\deluge\ssl\

Then
Enable https in the webui config.
Restart the webui

Useful commands for linux:
kill webUi

Code: Select all

kill -9 $(pgrep -u $USER deluge-web)
reboot - thanks to http://dev.deluge-torrent.org/wiki/User ... ipt/Ubuntu

Code: Select all

/etc/init.d/deluge-daemon restart
Kwb
Member
Member
Posts: 27
Joined: Sun May 31, 2009 2:49 pm

Re: SSL WebUI Setup

Post by Kwb »

andy0 wrote:From the FAQ:
Create (self-signed) ssl certificates: http://httpd.apache.org/docs/2.0/ssl/ss ... l#selfcert
** My deluge install already had key files in it, Debian 6 - latest Deluge & Deluge-web
Mine too has two files in ssl folder ( daemon.cert and daemon.pkey ). Although simply enabling the https via webui and restarting with /etc/init.d/deluge-daemon restart, the problem persists.
andy0 wrote: Linux - Put deluge.cert.pem and deluge.key.pem in ~/.config/deluge/ssl/
Windows - Put deluge.cert.pem and deluge.key.pem in %APPDATA%\deluge\ssl\

Then
Enable https in the webui config.
Restart the webui

Useful commands for linux:
kill webUi

Code: Select all

kill -9 $(pgrep -u $USER deluge-web)
reboot - thanks to http://dev.deluge-torrent.org/wiki/User ... ipt/Ubuntu

Code: Select all

/etc/init.d/deluge-daemon restart
Did just the same... Except for kill command... If I restart I don't think it's necessary...
Kwb
Member
Member
Posts: 27
Joined: Sun May 31, 2009 2:49 pm

Re: SSL WebUI Setup

Post by Kwb »

This is the log for deluge-web -L error:
Traceback (most recent call last):
File "/usr/bin/deluge-web", line 9, in <module>
load_entry_point('deluge==1.3.5', 'console_scripts', 'deluge-web')()
File "/usr/lib/pymodules/python2.6/deluge/ui/web/web.py", line 138, in start
web.start()
File "/usr/lib/pymodules/python2.6/deluge/ui/web/web.py", line 125, in start
self.server.start()
File "/usr/lib/pymodules/python2.6/deluge/ui/web/server.py", line 663, in start
self.start_ssl()
File "/usr/lib/pymodules/python2.6/deluge/ui/web/server.py", line 679, in start_ssl
self.socket = reactor.listenSSL(self.port, self.site, ServerContextFactory())
File "/usr/lib/python2.6/dist-packages/twisted/internet/posixbase.py", line 371, in listenSSL
p.startListening()
File "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 855, in startListening
raise CannotListenError, (self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on any:8112: [Errno 98] Indirizzo già in uso.
In the last line, after [Errno 98] it says: Address already in use
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: SSL WebUI Setup

Post by Cas »

Make sure the webui plugin is disabled if you are trying to use standalone deluge-web.
Kwb
Member
Member
Posts: 27
Joined: Sun May 31, 2009 2:49 pm

Re: SSL WebUI Setup

Post by Kwb »

Cas wrote:Make sure the webui plugin is disabled if you are trying to use standalone deluge-web.
Yes it is
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: SSL WebUI Setup

Post by Cas »

Make sure that nothing else is using port 8112 then.
Kwb
Member
Member
Posts: 27
Joined: Sun May 31, 2009 2:49 pm

Re: SSL WebUI Setup

Post by Kwb »

Cas wrote:Make sure that nothing else is using port 8112 then.
How do I do it?
Though I'm pretty sure nothing else is using port 8112
Post Reply