PhoneGap app ssl security

Hello, I have a question...

In my add an ajax request to an https Server index.js file...

example code:

() $.ajax

{

URL: < myServerHttps >,

type: 'POST',

data: < xmlFile >,.

contentType: "text/xml",

data type: "xml".
   });

Tdata transmission is it encrypted? PhoneGap Webview natively supports the ssl handshake with an https Server (for example what happens in a classic web browser and a server)?

Or do I have to install a special plugin?

Thank you

Angelo

Hey

Yes, data is encrypted and the encryption is handled by the Web mode on each platform as a normal web server.  However, PhoneGap does not support the advanced security features such as Certificate SSL pinning out of the box, and you must install the third-party plugins to add extra security.  In addition, PhoneGap does not allow certificates self-signed if an application is rejected, developing, please make sure to get your appropriate SSL certificate set up on your server before you publish your application.

I hope this explains the security situation.  For more information, see this post from Cordova on security:

Security Guide - Apache Cordova

Tags: PhoneGap

Similar Questions

  • PhoneGap with PDFjs security policy error

    I work with Adobe PhoneGap 6.3.3 I try to view a PDF file in a hybrid android application with PFDjs. In the browser, the pdf file is displayed, rather from a mobile phone with PhoneGap App Develover it does not work. In the console, I have this message:

    Content Security Policy has been modified to be: <meta
     http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: 'un
    safe-inline' https://ssl.gstatic.com * ws:;style-src 'self' 'unsafe-inline' data
    : blob:;media-src *;script-src * 'unsafe-inline' 'unsafe-eval' data: blob:;">

    I read the PDF from the internet with the following code:

      var url = 'http://www.example.com/foo.pdf';
      getBinaryData(url); //call this fn on page load 
    
       var callGetDocument = function (response) {
       // body...
      PDFJS.getDocument(response).then(function getPdfHelloWorld(_pdfDoc) {
      console.log('File caricato');
      pdfFile = _pdfDoc;
      openPage(pdfFile, currPageNumber, 1);
    
       });
       }
    
    
       var getBinaryData = function (url) {
      console.log('getBinaryData');
       // body...
       var xhr = new XMLHttpRequest();
    
      xhr.open('GET', url, true);
      xhr.responseType = 'arraybuffer';
      xhr.onload = function(e) {
       //binary form of ajax response,
      callGetDocument(e.currentTarget.response);
       };
    
      xhr.onerror = function  () {
       // body...
      console.log("xhr error");
       }
    
      xhr.send();
       }
    

    I always insert <allow-navigation href="http://*/*" /> in config.xml . Can you help me please.

    As you use the application Developer, which complicates things a bit, because it is not a perfect representation of what your application will really do when built its own. So you can do this first.

    I would also like to:

    • Make sure that your domain is added to your metatag CSP (content-security policy). If you don't have one, get one. Learn more about the whitelist docs in the next point.
    • When you build your application, make sure that the domain is properly added to the whitelist (). Read the docs: Cordoba-plugin-whitelist - Apache Cordova
    • Save useful information in your xhr.onerror method.
    • Investigate console debugging of the browser (using Chrome for Android) or Safari for iOS, which may also provide useful information. Note: You cannot do with the App Dev PG. You should build your application via the CLI or BMPS, favorite use Weinre (but it's not quite the same using the debugger to the browser.)
  • RDSH Lag when you browse the gateway SSL Secure-IT

    Hello

    I have a ticket open with support Dell/Quest, but thought I'd post here this ongoing problem where someone can help you.

    Question:

    I'm on version 8 vWorkspace and all servers are virtual Win2008R2 on ESXi 5.  When clients Web Connector (Windows or Mac) connects to RDSH gateway SSL Secure-IT, there is a noticeable lag when you type, hanging out windows, move the slider mouse around the start menu, etc.  All of our users to put to test is complained about this, because it affects their normal daily work.

    It is compared to customer standard RDP Windows, as well as bypassing the Secure-IT.  Bypassing the Secure-IT, the LAG disappeared completely.  The offset is also noticeable when comparing in the unique environment of LAN.

    EOP all off except for the extreme EOP EOP Flash and EOP printer.  I also tested with EOP all features are disabled, but it made no difference.

    All features of Windows disabled (smoothing of the fonts, background, etc.)

    My infrastructure:

    Internet (users)--> firewall SonicWall--> LAN (Secure-IT, Web - IT, connection broker, RDSH servers)

    The virtual machine of the LATTER was in the demilitarized zone, but to help out, I moved it inside the LAN which made no difference.

    The machine virtual Secure-IT has a lot of resources I can see that the CPU and the RAM hardly moved.  And I'm testing only with one or two connections in all cases.

    I tried to appoint the former Secure-IT version 7.5 executable, which further aggravates the offset.

    At this point, it is a show-stopper for us.  I hope that this can be resolved as vWorkspace is the best solution for us in terms of ease of use/connection for our non-techie users.

    Help!

    I discovered what the problem was.  I disabled the journaling on the IT security and the offset is now completely gone.  I found out about it on a post on the forum of Quest vWorkspace in 2010.  http://en.community.Dell.com/TechCenter/virtualization/vWorkspace/f/4827/t/19551509#1880

    So, I think Dell/Quest should document this, put in a basis of knowledge, or difficulty Secure-IT (pnsslsvc.exe) service, because it would help a lot of people.

  • How to get IMEI number with phonegap app by using Javascript?

    Hello

    I suffer on this the last 2 days to get the IMEI number in phonegap app by using javascript.

    I found all things related to Phonegap with Android, but I want to get the IMEI number with phonegap app by using javascript/JQuery according to requirement.

    Could you please give me the process step by step to get the IMEI number with phonegap app with javascript/JQuery?

    Thanks in advance.

    Thank you

    Jayaram

    You can use the cordova-plugin-device plugin for a UUID of the device (this api is the same on iOS, Android,...)

    This isn't exactly the same as the IMEI, but it is unique enough to identify the device, while protecting the privacy of the owner of the phone.

    If you need to get the IMEI, then google is your friend. This [1] was the first result when searching for "imei cordova.

    There's a good stack overflow article here [2] which has the disadvantage of using this value and encourage you to consider other ways to identify users, because users cannot trust your application if you ask for this info. Read the accepted answer.

    [1] GitHub - aquto/cordova-plugin-imei

    [2] http://stackoverflow.com/questions/1972381/how-to-get-the-devices-imei-esn-programmaticall y-android

  • PhoneGap App Security

    My question is this:

    How to fix my APK especially the content file.

    I'm developing an application and I don't want users to be able to share the app. I want to know if there is a plugin for phonegap I can use to make sure that users do not share my application but should be able to download it from googleplay store.

    If I can get a plugin to manage the license per installation, sound as good, but I don't just want users to share the application using bluetooth or any other form of sharing.

    Please if you can help me on this, I will be grateful.

    Use adobe dreamweaver for development then phonegap to get the apk conpilation.

    This isn't really a question of Dreamweaver.

    I haven't used PhoneGap for a long time, but I could find this information on the site of Google play, which should help you: App Licensing | Android developers.

  • Download and install apps through security securityu, anti-viral and firewall settings

    Hi, you guys.

    I'm still here and still need the same help.

    I can't download apps. as Amazon games and software downloader or Kindle for PC application.

    I get "your security settings do not download this file."

    If I go to my downloads folder and try to install, I get: "Windows found that this file is potentially harmful. to help protect your computer, Windows has blocked access to this file. »

    I'm away returns to this maybe problem eight times now. More recently by Gerdimae Sal. All the different suggestions. Nothing seems to work. Often, I am told to go through the options that I don't have. (Properties > General > unlock) doesn't have to "unlock" option.

    I am running windows 7 starter edition. I turn off my firewall and antiviral for download.  My browser is msn Bing.

    You good people tried to help me a lot.

    Waiting for your return.

    Al

    See the following topics:

    https://support.Avg.com/SupportArticleView?l=en_US&urlName=your-current-security-settings-do-not-allow-this-file-to-be-downloaded-in-Internet-Explorer

  • Weird error of Secure API for app without Secure API

    Hi, some of my remote testers find it difficult to load my application on their devices. I sent the files .alx and .cod files each time so that they could use their application of Device Manager to load my application on the phone.

    The error more common that they are reporting is: "error at startup of XXXX: Module 'XXXX' attempts to access a secure API." This occurs when they start the app on their phone.

    There is no secure API used in my application. The signing of Code tool also tells me that I is not need to sign the application for what it is.

    All have OS 4.6.1 or higher on their phone, and the application is compiled for 4.6.1.

    1. can you a carrier unit applications run on the phone? As a carrier signature thing?

    2. are there other known problems should I watch?

    1 NO.

    2. in function

    You should ask one of them to send you a log of the device, it will specify where and what causes the exception.

  • PhoneGap / app example Cordova not launching by BB10 Simulator

    I am launching a Phonegap "Hello World" example app in the Simulator BB10.

    As much as I fear, everything has been done correctly. The icon sets even on the home screen, but when I run it I get a black screen with the BB 10 logo in the background and it just hangs.

    See photo:

    I changed the 'project.properties' file in the project by adding the IP address of the Simulator and pointing to the SDK software WebWorks BB 10.

    I do not add the password BB 10 Simulator, because as far as I am concerned it is not a.

    I followed all the directions on Apache Cordova heredocumentation.

    Any help would be appreciated!

    Thanks in advance!

    OK, the problem is that I didn't use the default setting for the installation of the SDK. You MUST use the parameter by default when you install the SDK software to:

    / Developer/SDK/Research In Motion/BlackBerry 10 WebWorks SDK 1.0.4.5

  • Why ssl (secure connection) be error in virtualbox?

    I installed VirtualBox on windows 7. When running windows xp and other OS using virtualbox, I can not navigate on facebook because it has a secure connection, please see this screenshot:http://i.stack.imgur.com/E0FSM.jpg

    This windows xp has a NAT connection.
    Any idea, so I can browse ssl connections in virtualbox os? I asked this on the Forum VB but they keep saying this isn't a VB issue!

    any ideas would be great :) in the other hand, I use Eset antivirus software in my windows 7 :)

    Thank you

    Hi Harold,.

    I appreciate the efforts that you put to publish the query on this forum.

    As you use NAT connection on a virtual machine, I suggest you to publish the application on Microsoft's TechNet forum to get help. Check out the link to do so:

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro

    Please let us know if you have more queries on Windows.

  • PhoneGap App developer

    I'm new to PhoneGap and I try to install the app developer on my Samsung G360V phone. Its Android 5.1.1 running.

    I get a message saying that my device is not compatible with the software. OK now what? He speaks of having Android 4.1 or later

    to use this App does know what I can do to get this app on my phone? Thanks for any advice.

    Steve

    Your device may be missing some feature that wants the app. You can try to install the APK manually (outside of Google Play), although there may be some features that do not work as expected.

  • The IIOP listener/Manager with SSL security

    Hello

    I'm looking in securing client connections CORBA to ISL/ISH with SSL. The client authentication is not required, just the server authentication and encryption. After reviewing the documentation, I have a few questions about it.

    1. the manual of ' security in the CORBA Applications using"indicates that an LDAP server is used as the repository of certificate for the certificate server ISL/ISH. Are there alternatives to this like using a key file or LDAP is the only option?

    2. is it possible to configure the LDAP server (server name, port, etc.) without having to re - install Tuxedo?

    Concerning
    Ian

    Ian,

    Tuxedo uses a plugin framework architecture to manage the certificates and it is possible to replace the plugin framework implementations.

    In order to change the framework plugin interfaces that you need to get the information about the orders of FRP * and the framework of plugin, interfaces, and you will need to write code. Plugin framework documentation is made available on a basis as needed.

    As documented in http://download.oracle.com/docs/cd/E15261_01/tuxedo/docs11gr1/sec/secadm.html#wp1239453, "For more information about security plug-ins, including the installation and configuration procedures, see your Oracle account manager."

    The 'epifregedt g' command shows the current configuration of the plugin framework.
    The command "epifregedt g k SYSTEM/impl/security/BEA/certificate_lookup" simply shows security/BEA/certificate_lookup interface settings.
    The command "epifregedt g k SYSTEM/impl/security/BEA/certificate_lookup-a Params" shows that the parameters of this interface is instantiated.
    Suppose that the result of this command is
    Security/BEA/certificate_lookup of the ŒUVRE layout

    Instantiation settings:
    "userCertificateLdap = ldap://localhost:389".
    'filterFileLocation=file:///home/tuxdir/udataobj/security/bea_ldap_filter.dat '.

    Then the command
    epifregedt s k SYSTEM/impl/security/BEA/certificate_lookup.
    -a Params = userCertificateLdap = ldap://abcxyz:1389 /------.
    -a Params=filterFileLocation=file:///home/tuxdir/udataobj/security/bea_ldap_filter.dat

    will change the location of LDAP to ldap://abcxyz:1389.
    Note that it is necessary to specify the filterFileLocation with this command, even if it does not evolve.

    Thus, it is not necessary to reinstall Tuxedo to change LDAP settings.

    Because the registry change orders can be difficult to use, you can experiment with these commands on a development system or you can
    Export REG_KEY_SYSTEM =System.rdp
    CP $TUXDIR/udataobj/System.rdp $REG_KEY_SYSTEM
    before experimenting with epifregedt-s. (the value of REG_KEY_SYSTEM replaces the default value of $TUXDIR/udataobj/System.rdp).

    Kind regards
    Ed

  • 38.1.0, getting new mail is no longer works. Bug CAUSE deadlock/weak Diffie-Hellman for key 1185060 SOLUTION mitigation requires the TLS/SSL security key length &gt; = 1024

    That's about all. After the upgrade, I can no longer receive mail. I can send, but it does not put a copy in the "sent" folder and I get an error.

    "There was an error saving message in sent. Try again? »

    But the message on the other end.

    I checked the same email on my phone and Webmail accounts. No problem.

    I deleted the account and tried to add it back, but get an error:

    "Invalid username or password"
    "Setup could not be verified - is the name of user or wrong password?

    The user name and password are correct. Yet once, nothing changed with the account mail and it market in Webmail and on my iPhone.

    Any help would be greatly appreciated!

    Same problem here. In my case, I control the server. So I had my software update server admins and install a 2048-bit key instead of the old key of 768 bits. (By the way, for those who have their own server faced with this problem, you must switch to cPanel/WHM 11.5 to be able to upgrade the key. Older versions store more 768 bit keys for SSH.)

    Now, most of my accounts work. However, one account is always the error.

    When I check the error console, I find the following:

    Timestamp: 22/07/2015 08:44:35
    Error: An error occurred during a connection to [domain]: 143.

    Cannot communicate securely with counterpart: no common encryption algorithm.

    (Error code: ssl_error_no_cypher_overlap)

  • Firefox stop loading a page and perform a scan can ask to download the app from security or is it a scam?

    During the loading of a web site that I saw a firefox warning message saying my computer's security has been compromised and a scan is then performed, and I am asked for permission to download a security program. the address is update82 .zofrezon .cz .cc is this legitimate or a scdam.

    Edited to disable the link - Maurane

    Do not download anything whatsoever from this site, it is a known method used to try to get people to install malware/viruses. The message you received is not Mozilla.

  • Send keyboard button reloads PhoneGap app

    I'm having exactly the same problem described here: http://stackoverflow.com/questions/19375393/using-phonegap-override-blackberry-onscreen-keyboard-nex...

    [snip]

    I created a phonegap application that is a simple web form.

    Platforms: BlackBerry 10 device:-BB Q10

    When you enter text in the fields of the form are three buttons that appear on blackberry 'Previous', 'Next' and 'validate '. When you click on 'Submit', it causes the page to refresh.

    [/snip]

    My form is not a real action, as it is all managed via JS and AJAX.  My form submit button can handle things, but the button Submit BB as described above cause the entire application to reload.  So I have to either:

    (a) hide this bar

    (b) disable or otherwise manipulate the button submit BB (catch its keypress and release my own submit, method)

    What happens on a z10 runs 10.1.0.2019.  To do this, * not * seem to happen in a simulator running 10.2.1.1055, so I don't know if the problem is fixed in 10.2 or the Simulator has a different set of behaviors.

    Please notify.

    Hello

    We would need to see your code in order to understand what causes the update.

    However, you can disable the bar by adding this to the config.xml file:

    
    
  • Test a PhoneGap App on Simulator

    I created an application in DreamWeaver and bundled in one. JAD file optionally Phonegap using the.

    I tried to put the .jad on the web and navigating to the url with the Simulator, with no luck.

    How can I simulate the .jad on my computer file?

    EDIT

    I found a posting on the web on the issue at http://stackoverflow.com/questions/766870/blackberry-run-a-jad-file-on-the-simulator

    According to the website Internet accessing the jad location in the browser of the Simulator should do the trick. When I go to the location the .jad downloads file and I get a message saying 'cannot find the application default'.

    Hello

    Please note that the JAD file is just a text / file descriptor that indicates where to get the COD files. The JAD and COD must both be hosted on your web server / system files to install the application.

    However, there are two essential points:

    1. When an application exceeds a certain file size, it is actually broken into several, brother COD files. These COD files are then packed in a ZIP and finally the renamed ZIP a COD. When you distribute an application using JAD, you must unpack archive in its files of COD sibilng and host those instead of archive full of COD. The best way to check is to try to open the COD file with an archiving program (for example WinRAR). If you get an error, the cod is a COD and can be hosted as is. If you can see the content inside the cod (i.e. brother COD files), then you must extract these files brother and accommodate those with your JAD file.
    2. The JAD will point the COD (compared to the JAD) file. You can open the JAD file with a text editor and check the RIM-COD-URL attributes to see where the cod files must be placed (regarding the JAD file.) Most of the time (except if you have made any specific changes), the COD and JAD files should be placed in the same folder.

Maybe you are looking for