EddyVerbruggen / SSLCertificateChecker-PhoneGap-Plugin

:passport_control: Prevent Man in the Middle attacks with this Cordova plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android - always return CONNECTION_NOT_SECURE on 1 url

nazmisyazwan90 opened this issue · comments

I'm basically using this to check ssl certificate fingerprint from 2 domains.

One of the domain always return CONNECTION_SECURE,
https://api.ipify.org?format=json
sha256-fingerprint:
8A 0C AA B8 00 68 C2 01 09 EA 1B 99 E1 70 EC 6C 99 5A A7 0A DA 2D F7 E6 FE 0F A1 04 D8 17 6D 97

and my server serving my app's api calls always return CONNECTION_NOT_SECURE on android

As a preface, I tested the same code on iOS and the ssl check on both domains returns CONNECTION_SECURE,
If it helps, I'm developing the app using the Ionic (v6) Angular (v8)

Facing the same issue. In iOS it is working fine, but in Android it returns CONNECTION_NOT_SECURE for one particular url.
After debugging, found that con.connect() method was giving error, so IMO it wasn't able to connect to the server url in Android. Any help/suggestion will be much appreciated...

I wrote one plugin which supports IOS and android, Please check and confirm
Plugin name ssl.publickey.checker