silkimen / cordova-plugin-advanced-http

Cordova / Phonegap plugin for communicating with HTTP servers. Allows for SSL pinning!
MIT License
391 stars 313 forks source link

(feat) use non deprecated SecTrustEvaluateWithError, report cert errors #489

Closed dtarnawsky closed 1 year ago

dtarnawsky commented 1 year ago

This replaces the deprecated SecTrustEvaluate with SecTrustEvaluateWithError and will log certificate errors to aid during debugging.

An example reported certificate error is: Error Domain=NSOSStatusErrorDomain Code=-67843 ""GTS Root R1" certificate is not trusted" UserInfo={NSLocalizedDescription="GTS Root R1" certificate is not trusted