Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

HOW-TO rTorrent + SSL

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
HeXiLeD
Veteran
Veteran
User avatar
Posts: 1160
Joined: Sat Aug 20, 2005 5:41 pm
Location: Online

HOW-TO rTorrent + SSL

  • Quote

Post by HeXiLeD » Sat Oct 11, 2008 5:33 pm

For Gentoo Linux and similar distributions

Script:


Create the script:

Code: Select all

# nano script.sh

Code: Select all

#!/bin/sh
TRACKER=www.your-tracker.com

openssl s_client -connect $TRACKER:443 </dev/null 2>/dev/null | sed -n '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' >>
/etc/ssl/certs/$TRACKER.crt
openssl x509 -in /etc/ssl/certs/$TRACKER.crt -out /etc/ssl/certs/$TRACKER.der -outform DER
openssl x509 -in /etc/ssl/certs/$TRACKER.der -inform DER -out /etc/ssl/certs/$TRACKER.pem -outform PEM
c_rehash
unset TRACKER
Make it executable:

Code: Select all

# chmod +x script.sh
Run the script :

Code: Select all

# ./script.sh
To check cert:

Code: Select all

$ curl -I --capath /etc/ssl/certs www.your-tracker.com
And you will similar output:

Code: Select all

HTTP/1.1 302 Found
Date: Mon, 18 Aug 2008 05:45:45 GMT
Server: Apache
Location: /
Connection: close
Content-Type: text/html; charset=iso-8859-1
You can run it like this:

Code: Select all

$ rtorrent -o http_capath=/etc/ssl/certs/www.your-tracker.com.pem
You can also add http_capath=/etc/ssl/certs/www.your-tracker.com.pem to your .rtorrent.rc conf

Add to rtorrent.rc the following:

Code: Select all

encryption = require,allow_incoming,try_outgoing,enable_retry,prefer_plaintext
The latest (if existent) will always be here @ Full rTorrent client Configuration
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244
Top
vokiel
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 115
Joined: Fri Oct 01, 2004 6:38 pm

  • Quote

Post by vokiel » Fri Aug 20, 2010 1:58 am

For the record using http_capath=/etc/ssl/certs/www.your-tracker.com.pem doesn't seem to yield the desired result with 0.8.6-r1. The cert isn't found and you get a connection error. I think the proper option is http_cacert=/etc/ssl/certs/www.your-tracker.com.pem
Top
Post Reply

2 posts • Page 1 of 1

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic