Hi,

You might want to look at the discussion here: 
https://crosswalk-project.org/jira/browse/XWALK-7195

Francesco

From: Crosswalk-help <[email protected]> on 
behalf of Ellinger Thomas <[email protected]>
Date: Friday, 9 December 2016 at 15.50
To: "[email protected]" 
<[email protected]>
Subject: [Crosswalk-help] SSL self-signed issue

Hi,

I'm using xwalk embedded in my android app. My web server uses a self signed 
SSL/TLS cert. Since I've updated xwalk from version

16.45.421.19 to 19.49.514.5 (or higher), I cannot load pages from that server 
in xwalk any more. I'm always getting "ERR_INSECURE_RESPONSE" errors.

In the past I was able to catch and ignore the ssl errors in 
onReceivedSslError<https://crosswalk-project.org/apis/embeddingapidocs_v7/org/xwalk/core/XWalkResourceClient.html#onReceivedSslError-org.xwalk.core.XWalkView-android.webkit.ValueCallback-android.net.http.SslError->
 function of my resourceClient. Now with xwalk 19.49.514.5 (or higher) 
onReceivedSslError is not called any more. Instead, onReceivedLoadError
is called with error code -1.

I also tried according command line flags in OnCreate() function of my 
mainActivity:

final String commandLineParams[] = 
{"--unsafely-treat-insecure-origin-as-secure=https://myServer 
--user-data-dir=/test/only/profile/dir"};//set cmdline params
CommandLine.getInstance().appendSwitchesAndArguments(commandLineParams);//send 
cmdline params

I also tried flags --reduce-security-for-testing, 
--allow-running-insecure-content but nothing helped.

How can I enable the recent xwalk version to let me handle (ignore) 
"ERR_INSECURE_RESPONSE" errors by myself?

Cheers,

tom
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to