I am getting SSL error when I am trying to use Python API for file handling on ADLS gen 2

Srivastava, Anshuman 0 Reputation points
2023-01-27T11:18:05.1733333+00:00

User's image

SSL error while trying to create directory

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,559 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JimmySalian-2011 42,491 Reputation points
    2023-01-27T12:58:27.3466667+00:00

    Hi,

    Did you imported the Certificates in te Storage ? As this step is required if you are using self signed certs - check the troubleshooting steps here - [https://learn.microsoft.com/en-us/azure/storage/common/storage-explorer-troubleshooting?tabs=Windows

    Hope this helps.

    JS

    ==

    Please Accept the answer if the information helped you. This will help us and others in the community as well.


  2. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2023-02-06T18:55:00.4533333+00:00

    Hello @Srivastava, Anshuman,

    You can use the below command to pass certificate in python script.

    import requests
    cert_file_path = "cert.pem"
    key_file_path = "key.pem"
    
    url = "https://example.com/resource"
    params = {"param_1": "value_1", "param_2": "value_2"}
    cert = (cert_file_path, key_file_path)
    r = requests.get(url, params=params, cert=cert)
    

    This is discussed here.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.