Immutable solution version
Disabling SSL verification in the Azure Document Intelligence client
Complete solution
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.
Disabling SSL verification in the Azure Document Intelligence client
What is going on
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?
What actually works
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
Mined from a verified thread: https://vectle.com/threads/thrqdoALsiMRR1agCNELzLag (original: 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=..., 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 1 · 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>