diefferson / http_certificate_pinning

Https Certificate pinning for Flutter
Apache License 2.0
83 stars 70 forks source link

Passing invalid certificate signature in trusted signature list throws an unhandled platform exception #56

Closed Spalar closed 9 months ago

Spalar commented 9 months ago

When using with flutter, an interceptor is added in to a dio request for certificate pinning with a timeout of 10.

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(CONNECTION_NOT_SECURE, null, null, null)
#0            StandardMethodCodec.decodeEnvelope                  message_codecs.dart:652
#1            MethodChannel._invokeMethod                             platform_channel.dart:310 
<asynchronous suspension>
#2            HttpCertificatePinning.check                                   http_certificate_pinning.dart:35
<asynchronous suspension>
#3            CertificatePinningInterceptor.onRequest                 certificate_pinning_interceptor.dart:47
<asynchronous suspension>

Am i doing something wrong?

Spalar commented 9 months ago

https://github.com/diefferson/http_certificate_pinning/issues/55 Same Issue with more info. Closing as Duplicate