def make_socket (self): from coro.ssl import openssl, sock, new_ctx ctx = new_ctx (proto='tlsv1') return sock (ctx, verify=self.verify_tls)
def make_socket(self): from coro.ssl import openssl, sock, new_ctx ctx = new_ctx(proto='tlsv1') return sock(ctx, verify=self.verify_tls)
def make_socket (self): from coro.ssl import openssl, sock, new_ctx ctx = new_ctx (proto='tlsv1') ctx.use_cert (openssl.x509 (open ('server.crt').read())) ctx.use_key (openssl.pkey (open ('server.key').read(), '', True)) return sock (ctx, verify=self.verify_tls)
def make_socket(self): from coro.ssl import openssl, sock, new_ctx ctx = new_ctx(proto='tlsv1') ctx.use_cert(openssl.x509(open('server.crt').read())) ctx.use_key(openssl.pkey(open('server.key').read(), '', True)) return sock(ctx, verify=self.verify_tls)