in Education by
I have a python script that uses the VirusTotal API. It has been working with no problems, but all of a sudden when I run the script I am getting the following error: urllib2.URLError: I believe it may be our web proxy that is causing the issue. Is there a way to prevent it from verifying the cert? Here is the portion of the code that uses the API: json_out = [] url = "https://www.virustotal.com/vtapi/v2/file/report" parameters = {"resource": my_list, "apikey": ""} data = urllib.urlencode(parameters) req = urllib2.Request(url, data) response = urllib2.urlopen(req) json_out.append (response.read()) JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
I believe it may be our web proxy that is causing the issue. Is there a way to prevent it from verifying the cert? If you assume that a SSL intercepting proxy is denying the connection then you have to fix the problem at the proxy, i.e. there is no way to instruct the proxy to not check the certificate from your application. If instead you assume that there is a SSL intercepting proxy and thus the certificate you receive is not signed by a CA you trust then you should get the CA of the proxy and trust it in your application (see cafile parameter in the documentation). Disabling validation is almost never the right way. Instead fix it so that validation works.

Related questions

0 votes
    I'm scraping some internal pages using Python and requests. I've turned off SSL verifications and warnings. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 5, 2022 in Education by JackTerrance
0 votes
    The ______________ can have an SSL certificate associated with it if you are doing SSL offload. A. Listener B. Protocol C. Front-end port D. Cookie...
asked Nov 20, 2022 in Technology by JackTerrance
0 votes
    Storyline: I wanted to make my very own webserver in c#(first attempt). It went well(I was using ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 22, 2022 in Education by JackTerrance
0 votes
    I'm trying to configure SSL for Kafka Connect REST API (2.11-2.1.0). The problem I tried two ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 14, 2022 in Education by JackTerrance
0 votes
    The "Install files" action is missing the option "accept all SSL certificates" (like other server ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    After a bit of a struggle to set up AWS Route53 IPv6 and my DSN (Ionos) I've managed to set up ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    UPDATED Can't connect to a postgres database. The dependency of postgres is added via maven. Maven ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 14, 2022 in Education by JackTerrance
0 votes
    Do I risk losing sales by disabling SSL 2.0 and PCT 1.0 in IIS5? Clarification: Sales would be ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    (FWIW, I've posted this question to my blog as well: http://blog.wolffmyren.com/2011/07/11/ie- ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    I am going to create a new distribution at CloudFront. Already I have uploaded my SSL certificate at AWS IAM ... for this distribution? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    In MS Outlook 2010 account setting you can set : (A) Incomming Server POP3 (B) Outgoing Server SMTP (C) Encryption SSL (D) All of these Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    SSL primarily focuses on _______ (a) integrity and authenticity (b) integrity and non-repudiation (c) authenticity and ... questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 5, 2021 in Education by JackTerrance
0 votes
    In SSL, what is used for authenticating a message? (a) MAC (Message Access Code) (b) MAC (Message Authentication ... Security questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 5, 2021 in Education by JackTerrance
0 votes
    Why did SSL certificate require in HTTP? (a) For making security weak (b) For making information move faster (c) ... Security questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 5, 2021 in Education by JackTerrance
0 votes
    I am aware that Let's Encrypt made changes that may impact older clients because a root certificate would ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
...