[libtorrent] SSL Torrents
Brought to you by:
arvidn
|
From: Alexander L. <ale...@ap...> - 2013-07-23 03:44:58
|
Hi there,
I created a torrent with a signature like so:
def test_create_torrent_with_signature(self):
fs = lt.file_storage()
lt.add_files(fs, "mytorrent.content")
t = lt.create_torrent(fs)
t.add_tracker("udp://tracker.publicbt.com:80/announce")
t.set_creator("unit test")
t.set_priv(True)
t.set_root_cert(
"""-----BEGIN RSA PUBLIC KEY-----
<base64 stuff>
-----END RSA PUBLIC KEY-----""")
lt.set_piece_hashes(t, ".")
f = open("mytorrent.torrent", "wb")
f.write(lt.bencode(t.generate()))
f.close()
I expected that a client without a valid certificate signed by that CA
would not be able to download that torrent.
However, the download succeeded without any issues.
I am using the libtorrent build 0.16 for Py2.7.
What am I missing? Is the SSL torrent feature disabled in that build? Is
there a mistake in the way I created the torrent?
Thanks,
Alex
|