[英]how to know if https server is one way ssl or two way ssl
Since I am new to this SSL I am asking this question. 由于我是这个SSL的新手,所以我想问这个问题。 I googled and got this below mentioned HTTPS server python script.
我用谷歌搜索并得到了下面提到的HTTPS服务器python脚本。 May I please know if its one way SSL or Two way SSL?
请问是单向SSL还是双向SSL? And also how do I take dump to see the communication between client and server?
另外,如何转储查看客户端和服务器之间的通信?
My requirement is to have one way SSL. 我的要求是使用SSL的一种方法。
import BaseHTTPServer, SimpleHTTPServer
import ssl
httpd = BaseHTTPServer.HTTPServer(('localhost', 4443), SimpleHTTPServer.SimpleHTTPRequestHandler)
httpd.socket = ssl.wrap_socket (httpd.socket, certfile='path/to/localhost.pem', server_side=True)
httpd.serve_forever()
May I please know if its one way SSL or Two way SSL
请问是单向SSL还是双向SSL
This is one-way, ie the server is sending its certificate but not requesting a certificate from the client. 这是单向的,即服务器正在发送其证书,但未从客户端请求证书。 The server could request a client certificate by adding
cert_reqs=ssl.CERT_REQUIRED
to the call of ssl_wrap
. 服务器可以通过添加请求客户机证书
cert_reqs=ssl.CERT_REQUIRED
到的呼叫ssl_wrap
。
And also how do I take dump to see the communication between client and server?
另外,如何转储查看客户端和服务器之间的通信?
Use the packet capture tool of your choice and which is supported on your unknown platform. 使用您选择的数据包捕获工具,该工具在未知平台上受支持。 wireshark is a good choice and you will find plenty of documentation about how to use it.
Wireshark是一个不错的选择,您将找到大量有关如何使用它的文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.