Is there a way to turn off SSL checking so that WrongHost Exceptions are not generated when using SOAPpy in python.
Share
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.
You can disable all peer certificate checks in M2Crypto like that:
I hope you’re aware that this will essentially disable security for any SSL connection created with M2Crypto. So this isn’t recommendable at all, except if you’re only communicating with one server and think that the man-in-the-middle risk is more acceptable than having unencrypted HTTP.
So far for the M2Crypto solution, but as your question (as opposed to your title) asks for SOAPpy (which I haven’t used yet), the solution might be different because the SOAPpy config seems to use the
socketmodule instead ofM2Crypto.SSL(see line 132). I don’t know how to prevent thesocket.sslmodule to check host names.