pyOpenSSL0.13---'socket' object has no attribute 'get_peer_cert_chain'
I want to get certificate chain ,but a problem happend ,the problem is that 'socket' object has no attribute 'get_peer_
I use pyOpenSSL0.13 and python3.3
the sample code named test.py:
import socket
from OpenSSL import SSL
context = SSL.Context(
s = socket.
connection = SSL.Connection(
connection.
connection.
try:
connection.
except OpenSSL.
print(
quit()
print(connectio
print(connectio
#python test.py
print(
AttributeError: 'socket' object has no attribute 'get_peer_
step 1:success
step 2: failure
Did I ignore something?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- pyOpenSSL Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask h&m for more information if necessary.