SSL ISSUE while connecting to vision url
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