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
I'm trying to integrate the plug-in in to my phonegap app. I followed all the steps. Its always giving me CONNECTION_NOT_SECURE message. Thinking that its an issue with our website, I tried other public websites. But I'm always getting CONNECTION_NOT_SECURE message. Any help would be highly appreciated.
I have included in the phonegap config.xml.
The following script in included in index.html
<script type="text/javascript">
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
var server = "https://build.phonegap.com";
var fingerprint = "77 8d d9 8a 7d 2b c5 25 a1 8f 16 d0 0d 43 4a cb 6a 37 02 01";
window.plugins.sslCertificateChecker.check(
successCallback,
errorCallback,
server,
fingerprint);
function successCallback(message) {
alert(message);
// Message is always: CONNECTION_SECURE.
// Now do something with the trusted server.
}
function errorCallback(message) {
alert(message);
if (message == "CONNECTION_NOT_SECURE") {
// There is likely a man in the middle attack going on, be careful!
} else if (message.indexOf("CONNECTION_FAILED") >- 1) {
// There was no connection (yet). Internet may be down. Try again (a few times) after a little timeout.
}
}
}
</script>
The text was updated successfully, but these errors were encountered:
I'm trying to integrate the plug-in in to my phonegap app. I followed all the steps. Its always giving me CONNECTION_NOT_SECURE message. Thinking that its an issue with our website, I tried other public websites. But I'm always getting CONNECTION_NOT_SECURE message. Any help would be highly appreciated.
I have included in the phonegap config.xml.
The following script in included in index.html
<script type="text/javascript"> document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { var server = "https://build.phonegap.com"; var fingerprint = "77 8d d9 8a 7d 2b c5 25 a1 8f 16 d0 0d 43 4a cb 6a 37 02 01"; window.plugins.sslCertificateChecker.check( successCallback, errorCallback, server, fingerprint); function successCallback(message) { alert(message); // Message is always: CONNECTION_SECURE. // Now do something with the trusted server. } function errorCallback(message) { alert(message); if (message == "CONNECTION_NOT_SECURE") { // There is likely a man in the middle attack going on, be careful! } else if (message.indexOf("CONNECTION_FAILED") >- 1) { // There was no connection (yet). Internet may be down. Try again (a few times) after a little timeout. } } } </script>The text was updated successfully, but these errors were encountered: