ArchLinux - Setup Deluge to use HTTPS

  • Stop deluged torrent process:

1
systemctl stop deluged.service

  • Go into deluge ssl folder:

1
cd /srv/deluge/.config/deluge/ssl

  • Backup or remove the old certificate and key:

1
mv daemon.cert daemon.cert.old && mv daemon.pkey daemon.pkey.old

  • Generate the new deluge certificate and key:

1
openssl req -new -x509 -nodes -out deluge.cert.pem -keyout deluge.key.pem

  • Answer questions for teh certificate.
  • Be sure to give the right ownership to certificate and key:

1
chown -R deluge:deluge /srv/deluge/.config/deluge/ssl

  • Launch deluge web UI (User Interface) via http.
  • Open the Preferences menu, select Interface tab and check Use SSL.
  • Change Private Key into ssl/deluge.key.pem and Certificate into ssl/deluge.cert.pem.
  • Click Apply and then Ok.
  • Or instead of using the web UI, modify /srv/deluge/.config/deluge/web.conf (stopping deluge-web before is needed):
    • "https": true,
    • "pkey": "ssl/deluge.key.pem",
    • "cert": "ssl/deluge.cert.pem",
  • Start deluged torrent process:

1
systemctl start deluged.service

  • Restart deluge-web UI:

1
systemctl restart deluge-web.service

  • Launch deluge web UI using https and enjoy.
Share