Software Archive
Read-only legacy content
17061 Discussions

intel xdk emulate econnrefused error

willy_b_
Beginner
285 Views

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.

0 Kudos
2 Replies
Rakshith_K_Intel
Employee
285 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"

 

0 Kudos
willy_b_
Beginner
285 Views

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

 

0 Kudos
Reply