nativescript-community / https

Secure HTTP client with SSL pinning for Nativescript - iOS/Android
https://nativescript-community.github.io/https/
Other
51 stars 42 forks source link

Malformed data due to data.classe() return undefined #57 and fix Content-Type issue with utf-8 #60

Closed kefahB closed 4 years ago

kefahB commented 4 years ago

Hi @EddyVerbruggen

I have fixed those issues that I facing on IOS only :

kefahB commented 4 years ago

@EddyVerbruggen During implementation with android I have facing the error javax.net.ssl.SSLPeerUnverifiedException .. my certificate is Domain Control Validated, after a long debugging, it seems the problem come from the Wildcard support .. I have edited https.android.ts and I have testing with my certificate and all test was done.

In order to dealing with a sub-domaine we must set commonName to *.domaine.com other way it will return SSLPeerUnverifiedException

Https.request error javax.net.ssl.SSLPeerUnverifiedException: Hostname demo.lunch-digi-pay.lu not verified:
certificate: sha256/i5fW5TLEfJtKsLBatgI2QctF2EPmxuVrGtVGW418CDM=
JS:     DN: CN=*.lunch-digi-pay.lu,OU=Domain Control Validated
JS:     subjectAltNames: [*.lunch-digi-pay.lu, lunch-digi-pay.lu]
EddyVerbruggen commented 4 years ago

Thanks! I'll merge this asap.