Community
cancel
Showing results for 
Search instead for 
Did you mean: 
willy_b_
Beginner
47 Views

intel xdk emulate econnrefused error

Hello all.

I'm developing a mobile app with intel xdk (for android). I need to retrieve some data from a server. The connection is encrypted (https) but unfortunately there is a problem with the certificated (the certificate used for the signature is not trusted).

I have performed several test with the browser and everything goes well because when the browser alerts me about an unsecure connection, the only thing I need to do is allow the connection and the browser ignores the alert. But when I run the app in the emulator (emulate tab) of XDK I don't know how to allow the emulator to connect to this unsecure site and my app can't connect to the server.

Can anyone help me? Thanks a lot.

Tags (2)
0 Kudos
2 Replies
Rakshith_K_Intel
Employee
47 Views

You have to use trusted certificate for your https server, eventually for it to work in built app you have to have a trusted certificate.

For testing purpose, you can try opening Intel XDK in cmd line with this flag "--ignore-certificate-errors"

something like this on windows:

C:\Users\{USER}\AppData\Local\Intel\XDK\bin\nw.exe --ignore-certificate-errors "C:\Users\{USER}\AppData\Local\Intel\XDK\xdk\xdk-wrapper"

 

willy_b_
Beginner
47 Views

Thank you very much for your answer, I'll try your solution.

 

Reply