自从换了个笔记本+WIN10.发现问题不少.
1,BURP,字体变得特别小. 加了个显示器之后,恢复正常了.
2,微信,截图的时候,可视范围变小,出现大块的黑屏.
试了很久解决了.解决办法如下:

1,针对burp的问题.因为是jar的文件.应该是一类通病.
C:\Program Files\Java\jdk1.8.0_121\bin\javaw.exe
右键->属性->兼容性->
javaw.png

2,微信的参考如上,javaw换成微信的WeChat.exe.

pip install pyOpenSSL

import socket
import ssl
import OpenSSL.crypto as crypto

dst = ('kele.im',443)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(dst)

# upgrade the socket to SSL without checking the certificate
# !!!! don't transfer any sensitive data over this socket !!!!
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
s = ctx.wrap_socket(s, server_hostname=dst[0])

# get certificate
cert_bin = s.getpeercert(True)
x509 = crypto.load_certificate(crypto.FILETYPE_ASN1,cert_bin)
print("CN=" + x509.get_subject().CN)

来自https://stackoverflow.com/questions/45478536/python-getting-common-name-from-url-using-ssl-getpeercert