azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

SLL Certificate Error

Open numersoz opened this issue 1 year ago • 3 comments

Hi,

I'm having SSL certificate issues while connection to ADLS.

I don't see a way of disabling SSL verification or don't know of a way to add the VPN certificate.

My company is using Zscaler. I had similar issues with PIP installations, and I was able to add Zscaler certificate to PIP.INI. Is there a similar approach I can take for this package?

I'm using Anaconda 3.9 and latest package of azure-storage-file-datalake.

File c:\Users\*****\Anaconda3\lib\site-packages\utils\azure_utils.py:123, in DataLake.list_directory_contents(self, file_system, directory)
    121 file_system_client = self.service_client.get_file_system_client(file_system)
    122 paths = file_system_client.get_paths(path=directory)
--> 123 paths = [path.name for path in paths]
    125 return paths

File c:\Users\*****\Anaconda3\lib\site-packages\utils\azure_utils.py:123, in <listcomp>(.0)
    121 file_system_client = self.service_client.get_file_system_client(file_system)
    122 paths = file_system_client.get_paths(path=directory)
--> 123 paths = [path.name for path in paths]
    125 return paths

File c:\Users\*****\Anaconda3\lib\site-packages\azure\core\paging.py:128, in ItemPaged.__next__(self)
    126 if self._page_iterator is None:
    127     self._page_iterator = itertools.chain.from_iterable(self.by_page())
--> 128 return next(self._page_iterator)

File c:\Users\*****\Anaconda3\lib\site-packages\azure\core\paging.py:76, in PageIterator.__next__(self)
     74     raise StopIteration("End of paging")
     75 try:
...
--> 361     raise error
    362 if _is_rest(request):
    363     from azure.core.rest._requests_basic import RestRequestsTransportResponse

ServiceRequestError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

numersoz avatar Dec 13 '22 18:12 numersoz