SSL ISSUE while connecting to vision url

Irfan 1 Reputation point
2020-05-29T06:17:15.233+00:00

Hi Team,

We are running a program in our Linux instance in which we are connecting to https://southeastasia.api.cognitive.microsoft.com and it is throwing SSL Certification failed error.
Kindly suggest me how to import the SSL certificate and what are all changes need to make in order connect to this url through our program.

PFB for the program and error details:

Piece of code which is throwing error:

import requests
azure_vision_url = "https://southeastasia.api.cognitive.microsoft.com/vision/v2.0/"
headers = {"Content-Type": "application/octet-stream"}
params = {"mode": "Printed"}
response = requests.post(azure_vision_url, headers=headers, params=params, verify=True)
print(response.json())

Note : verify is the parameter to enable SSL verification. We are able to run the code by turning off SSL verification but as per our platform policies it is not advisable to run without SSL.

kindly suggest me on how to resolve this issue

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,910 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.