Comments (8)
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.
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.
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.
Hi, sorry for the delay.
Do you need support or evolution ?
from ssl_pinning_plugin.
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.
@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.
Any update?
from ssl_pinning_plugin.
Bump! Any update on this issue?
from ssl_pinning_plugin.
It's been three years since this was opened, let us know if there's any update.
from ssl_pinning_plugin.
Related Issues (18)
- Support for SHA-256 Fingerprint HOT 1
- MissingPluginException(No implementation found for method check on channel ssl_pinning_plugin)
- Check Event Error HOT 1
- Flutter v1.22.1 - Compatibility error HOT 4
- Public key pinning support HOT 1
- Migrate to sound null safety HOT 2
- Fatal Exception: java.lang.NoClassDefFoundError: c.f.a.a.a$c HOT 8
- works at the emulator but not on the phone
- Automatic renew certification HOT 1
- Dart 2 support HOT 1
- ANRs on handleCheckEvent HOT 2
- [feature request]: has any plan to support windows and macos platform?
- Update to v2 android plugin APIs HOT 1
- Kotlin version is out of date HOT 1
- swift code version not provided HOT 1
- MissingPluginException(No implementation found for method close on channel ssl_pinning_plugin) HOT 6
- error: compiling for iOS 8.0, but module 'CryptoSwift' has a minimum deployment target of iOS 9.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ssl_pinning_plugin.