Can't you just use the 'SSL' OptBool, and benefit from the SSL capabilities of the Exploit::Remote::TCP mixin? just asking :)