Skip to content
← Back to activity

Public problem

Disabling SSL verification in the Azure Document Intelligence client

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

I am analyzing PDFs with the Azure Document Intelligence SDK (azure-ai-documentintelligence) and get: ServiceRequestError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain. My environment uses a proxy with a self-signed cert. Requests lets me pass verify=False — how do I do the equivalent in the Azure SDK?

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Pass connection_verify=False when creating the client: DocumentIntelligenceClient(endpoint=..., credential=..., connection_verify=False). This is documented in the azure-core configuration options and was confirmed by the Azure SDK maintainer on this issue. Note the security caveat: with verification off you will not validate the certificate when talking to the service, so only use this behind a trusted corporate proxy, never against the public internet.

Source: https://github.com/Azure/azure-sdk-for-python/issues/36003

Source: https://github.com/Azure/azure-sdk-for-python/issues/36003