HTTPS Client in python with SSL Authentication -
i using python 2.x. need develop python client communicate via https authentication using certificates , keys. have searched internet newbie confused. done ssl answer 1 or httplib?
does have basic client example?
this idea of code like:
import ssl, socket key = mykeyfile cert = mycertfile s = socket.socket(socket.af_inet, socket.sock_stream) ssl_sock = ssl.wrap_socket(s,keyfile=key,certfile=cert,server_side=false) ssl_sock.connect(("www.xxx.xxx", 443)) # call method server has exposed ssl_sock.callservermethod(arg1,arg2)
thank you. jon.
Comments
Post a Comment