import sys
import idiokit
from idiokit import socket, ssl

@idiokit.stream
def client(host, port):
    sock = socket.Socket()
    yield sock.connect((host, port))

    ssl_sock = yield ssl.wrap_socket(sock, require_cert=True)
    cert = yield ssl_sock.getpeercert()
    ssl.match_hostname(cert, host)


#<host> <port> [ca-bundle]                                                                 


host = sys.argv[1]
port = sys.argv[2]
catfile = sys.argv[3] if len(sys.argv) > 3 else None

try:
    idiokit.main_loop(client(host, int(port)))
    print "VERIFY SUCCESS"
except idiokit.ssl.SSLError:
    print "VERIFY FAILURE"
else:
    pass

@@ -300,192 +300,45 @@
 )%0A%0A%0A
-#%3Chost%3E %3Cport%3E %5Bca-bundle%5D                                                                 %0A%0A%0Ahost = sys.argv%5B1%5D%0Aport = sys.argv%5B2%5D%0Acatfile = sys.argv%5B3%5D if len(sys.argv) %3E 3 else None
+host = sys.argv%5B1%5D%0Aport = sys.argv%5B2%5D
 %0A%0Atr
@@ -474,19 +474,4 @@
 RE%22%0A
-else:%0A    pass%0A

Update idiokitHTTP.py