You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These functions all take success and error callbacks as their last 2 arguments.
143
143
144
-
### enableSSLPinning
145
-
Enable or disable SSL pinning. This defaults to false.
144
+
### setSSLCertMode<aname="setSSLCertMode"></a>
145
+
Set SSL Cert handling mode, being one of the following values:
146
+
147
+
*`default`: default SSL cert handling using system's CA certs
148
+
*`nocheck`: disable SSL cert checking, trusting all certs (meant to be used only for testing purposes)
149
+
*`pinned`: trust only provided certs
146
150
147
151
To use SSL pinning you must include at least one .cer SSL certificate in your app project. You can pin to your server certificate or to one of the issuing CA certificates. For ios include your certificate in the root level of your bundle (just add the .cer file to your project/target at the root level). For android include your certificate in your project's platforms/android/assets folder. In both cases all .cer files found will be loaded automatically. If you only have a .pem certificate see this [stackoverflow answer](http://stackoverflow.com/a/16583429/3182729). You want to convert it to a DER encoded certificate with a .cer extension.
148
152
149
153
As an alternative, you can store your .cer files in the www/certificates folder.
0 commit comments