Forum Discussion

floody's avatar
floody
Regular Visitor
1 year ago
Solved

Notebook possbile to use mTLS as Auth to API Service

Hi everyone,

 

I am currently looking into options to ingest data from a external service via their API.

 

The API uses mTLS client certificates and private keys for Auth and was wondering what is the possibilities of using this auth method within Fabric Notebook using Python.

 

For testing purposes tried to upload the pem files to OneLake storage and reference them via "abfss" path and then use them in the request, but I get errors (OSError: Could not find the TLS certificate file, invalid path) so I assume something needs to be setup/configured differently.

 

cert = ('path/to/client/cert', 'path/to/client/key')
response = requests.get(url, cert=cert)

 

Hope someone can advise.

 

Cheers

4 Replies