Giter Site home page Giter Site logo

Comments (9)

ion-elgreco avatar ion-elgreco commented on August 11, 2024

I see what's going wrong here. By default it's looking at the wrong certificate bundle, while it should use this: /etc/ssl/certs/ca-certificates.crt, other clients like Hyper in Rust don't really have an issue with find this, so quite interesting

from s3fs.

martindurant avatar martindurant commented on August 11, 2024

Python SSL certificates are a thing. Apparently, you can set AWS_CA_BUNDLE or configure this in your .aws config somehow.

from s3fs.

ion-elgreco avatar ion-elgreco commented on August 11, 2024

@martindurant what do you mean, are a thing? I don't use AWS so I won't have that config.

What I don't quite get, that this is only an issue with aiobotocore. everything else is able to find the certificate bundles without a problem

from s3fs.

martindurant avatar martindurant commented on August 11, 2024

The cert path defined within python is often not your system one. The rust crate will use the latter.

everything else is able to find the certificate bundles without a problem

What is "everything else" in this context? Libraries like requests usually allow you to explicitly supply extra bundles/paths at runtime.

from s3fs.

ion-elgreco avatar ion-elgreco commented on August 11, 2024

The cert path defined within python is often not your system one. The rust crate will use the latter.

everything else is able to find the certificate bundles without a problem

What is "everything else" in this context? Libraries like requests usually allow you to explicitly supply extra bundles/paths at runtime.

I don't believe I've needed to manually provide the paths for 'requests' before

from s3fs.

martindurant avatar martindurant commented on August 11, 2024

I don't believe I've needed to manually provide the paths for 'requests' before

but have you used that with a custom endpoint like this before?

from s3fs.

ion-elgreco avatar ion-elgreco commented on August 11, 2024

I don't believe I've needed to manually provide the paths for 'requests' before

but have you used that with a custom endpoint like this before?

I connected on multiple occasions to intranet pages that required the CA bundles to be manually installed in the system.

from s3fs.

martindurant avatar martindurant commented on August 11, 2024

ca_bundle and AWS_CA_BUNDLE are mentioned here: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html . This suggests that boto(core) won't use your standard configuration without explicitly configuring. Have you tried setting these values?

from s3fs.

ion-elgreco avatar ion-elgreco commented on August 11, 2024

@martindurant I got it working with: client_kwargs={"verify": CERT_PATH}, sorry for late update : P

from s3fs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.