cordova - Phonegap app with CORS request via HTTPS using self-signed certificate -


i developing phonegap application, consumes web service via ajax calls. service running on https using self-signed ssl certificate. tried edit config.xml in different ways, using cordova-plugin-whitelist v1.2.1

access origin="*"

and

allow-intent href="http://*/*"
allow-intent href="https://*/*"
allow-navigation href="http://*/*"
allow-navigation href="https://*/*"

after digging here, found out, usage of self-signed certificates in phonegap app may lead ssl error, not shown when app running, resulting in unavailability perform ajax calls (though on android, surprisingly, works, problem exists on ios , wp8/10 devices). read overriding "onsslerror" procedures in application sources, , doing made application work, have upload app stores, meaning can not use workaround. on other hand trying evade necessity issue authorized ssl cert because costs. decided manually install certificate on test devices prior installing actual application. did so, didn't - application still has no network connection , cannot consume remote service.

so question is, had tried use manually installed self-signed certificates phonegap apps , did worked?

after 24-hour exploration convinced, iphone , windowsphone devices reject self-signed certificates in case installed prior application installation. android allows talk https ajax unverified certificates.
so answer is: if building phonegap application , want have secured https connection via ajax, use ca certificates.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -