code: function (boolActivateUnsecure) {
          if (cordova.platformId == 'android')
              cordova.exec(null, null, 'CertificatesPlugin', 'setUntrusted', [boolActivateUnsecure]);
          else
              cordova.exec(null, null, 'CDVCertificate', 'setUntrusted', [boolActivateUnsecure]);
      }
docs: Activates or deactivates the acceptance of self signed/unsecure SSL certificates
  
  @param {Function} boolActivateUnsecure
  boolean value to set desired behaviour