Script:
Create the script:
Code: Select all
# nano script.shCode: 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 TRACKERCode: Select all
# chmod +x script.shCode: Select all
# ./script.shCode: Select all
$ curl -I --capath /etc/ssl/certs www.your-tracker.comCode: 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-1Code: Select all
$ rtorrent -o http_capath=/etc/ssl/certs/www.your-tracker.com.pemAdd to rtorrent.rc the following:
Code: Select all
encryption = require,allow_incoming,try_outgoing,enable_retry,prefer_plaintext
