Software Archive
Read-only legacy content
17061 Discussions

open untrusted ssl certificate

ramin_b_
Beginner
805 Views

hi dear

please tell me how can use from this plug in

http://plugins.cordova.io/#/package/de.martinreinhardt.cordova.plugins.certificates

for my untrusted site

i add all permissions problem is ssl certificate

 

my code is this :

<!DOCTYPE html>
<html>
<!--
  * Please see the included README.md file for license terms and conditions.
  -->
<head>
    <title>test</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">

<style type="text/css">
html, body {
  overflow: hidden;
}
</style>


    <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=no">
  
    <script src="cordova.js" id="xdkJScordova_"></script>

    <script src="js/app.js"></script>     

      <!-- for your event code, see README and file comments for details -->
    <script src="js/init-app.js"></script>      <!-- for your init code, see README and file comments for details -->
    <script src="xdk/init-dev.js"></script>     <!-- normalizes device and document ready events, see file for details -->





</head>


<body>
<meta HTTP-EQUIV="REFRESH" content="0; url=https://www.bmi.ir/">

</body>
</html>
0 Kudos
5 Replies
PaulF_IntelCorp
Employee
805 Views

Sorry, not familiar with that plugin. You'll find the documentation for it here: https://github.com/hypery2k/cordova-certificate-plugin. Also, it has been added to the new Cordova registry, so if you have upgrade to 2496 you can add it to your project by specifying "registry" in the third-party plugin manager tool and reference it by name as cordova-plugin-certificates

0 Kudos
hadi78m_g_
Beginner
805 Views

hi

i add cordova-plugin-certificates in project but don't load bank or https (ex:  https://www.bmi.ir/ ) in phone but load in tablet please help me?

0 Kudos
PaulF_IntelCorp
Employee
805 Views

I don't fully understand your question, but I think the problem you are experiencing is due to lack of whitelist entries in your project settings. Please see the "Whitelist" section of the Build Settings on the Projects tab. It points to this doc page: https://software.intel.com/en-us/xdk/docs/using-cordova-whitelist-rules-with-intel-xdk

0 Kudos
hadi78m_g_
Beginner
805 Views

hi

thanks

1. i create new page and insert ifream

2. in ifream src="https://www.bmi.ir "

3. add cordova-plugin-certificates

4. add Whitelist external https://www.bmi.ir

then run in "app preview"  but don't show link and only blank page "white color"

0 Kudos
PaulF_IntelCorp
Employee
805 Views

Don't use an iframe, use the inAppBrowser plugin.

0 Kudos
Reply