Any idea how I can fix this?
>>> from M2Crypto import SSL
>>> M2Crypto.version
'0.21.1'
>>>
>>> ctx = SSL.Context()
>>> conn = SSL.Connection(ctx)
>>> conn.connect(('cancerhelp.org.uk', 443))
Segmentation fault (core dumped)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The problem is probably that the server can’t handle the default
sslv23protocol used by default by M2Crypto – at least it’s part of the problem. It shouldn’t segfault but give an error in this case, that’s probably a bug in M2Crypto.Try using
sslv3ortlsv1instead:That worked for me…