Git Product home page Git Product logo

Comments (8)

sahil-oyo avatar sahil-oyo commented on June 20, 2024 2

There is inbuilt support for SSL pinning in dart but it does not cover all the cases. A possible alternative would be to get inbuilt support fixed.

Checkout this and this


HttpClient client = new HttpClient();
client.badCertificateCallback = ((X509Certificate cert, String host, int port) {
final isValidHost = host == "api.my_app";
return isValidHost;
});
what is this host checking here can anyone explains it.

In the code snippet you are checking if the request is coming from the desired host. I am not sure about your use case but this does not help us with MITM attacks.

from ssl_pinning_plugin.

smian-esba avatar smian-esba commented on June 20, 2024

Hi @us3soap, thank you for creating an awesome plugin. We are looking forward to using this but this issue mentioned above is holding us back. Please let me know what would it take to add "certificate check" into the plugin so we safely implement cert pinning through this plugin. Thanks very much for your contribution!

from ssl_pinning_plugin.

us3soap avatar us3soap commented on June 20, 2024

Hi, sorry for the delay.

Do you need support or evolution ?

from ssl_pinning_plugin.

sahil-oyo avatar sahil-oyo commented on June 20, 2024

As mentioned by @mleonhard in this thread, i guess the plugin makes a separate call to same domain for validating the keys.

Therefore, two calls are being made for every request where we need SSL pinning. It would be really nice if we can validate Certificate Key in the original request itself.

from ssl_pinning_plugin.

basnetjiten avatar basnetjiten commented on June 20, 2024

@SahilPatel16 do we have anything alternative to these solution. I found this code in stackoverflow

HttpClient client = new HttpClient();
client.badCertificateCallback = ((X509Certificate cert, String host, int port) {
final isValidHost = host == "api.my_app";
return isValidHost;
});
what is this host checking here can anyone explains it.

from ssl_pinning_plugin.

bkhezry avatar bkhezry commented on June 20, 2024

Any update?

from ssl_pinning_plugin.

akrmr avatar akrmr commented on June 20, 2024

Bump! Any update on this issue?

from ssl_pinning_plugin.

shubhamhackz avatar shubhamhackz commented on June 20, 2024

It's been three years since this was opened, let us know if there's any update.

from ssl_pinning_plugin.

Related Issues (18)

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.