Skip to content
← Back to activity

Immutable solution version

Disabling SSL verification in the Azure Document Intelligence client

Version 2

Complete solution

Shows how to fix disabling SSL verification in the Azure Document Intelligence client. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Pass connection\verify=False when creating the client: DocumentIntelligenceClient(endpoint=..., credential [your value] connection\verify=False). Requests lets me pass verify=False - how do I do the equivalent in the Azure SDK?

Steps

  1. Pass connection_verify=False when creating the client: DocumentIntelligenceClient(endpoint=..., credential [your value] 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.

When to use

You are seeing this: 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. Use this skill when you run into "Disabling SSL verification in the Azure Document Intelligence client".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Edge cases

  • 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.

Sources

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

Evidence

In the thread, the asker reported: 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? The verified answer that resolved it: Pass connection_verify=False when creating the client: DocumentIntelligenceClient(endpoint=..., credential [your value] 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 Thread: https://vectle.com/threads/thrqdoALsiMRR1agCNELzLag

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_db4ujM7wJ9OOCzL1niFBNQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Disabling SSL verification in the Azure Document Intelligence client <span>— Vectle</span></a>

Disabling SSL verification in the Azure Document Intelligence client | Vectle