Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin not working since Crosswalk 19 and later #1

Open
schulti opened this issue Dec 19, 2016 · 10 comments
Open

Plugin not working since Crosswalk 19 and later #1

schulti opened this issue Dec 19, 2016 · 10 comments

Comments

@schulti
Copy link

schulti commented Dec 19, 2016

I have updated my Crosswalk installation in Cordova from 18+ to 19+ and I since then I get this message in logcat:

I/X509Util(23400): Failed to validate the certificate chain, error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

When I return to Version 18+, the plugin works as designed.

config.xml:
working:
<preference name="xwalkVersion" value="18+" />
not working:
<preference name="xwalkVersion" value="19+" />

The same situation happened in later versions.

@pcsantana
Copy link

Hi @schulti, did you find any solution for this?

Thank you!

@schulti
Copy link
Author

schulti commented Feb 16, 2017

Hi @pcsantana,

Daniel contacted me around christmas via email and said that he will look into that in the next weeks. I did not get an update since then.

I also have to tell that I already removed crosswalk from the specific app... (I would like to integrate it again, as it was improving compatibility for older devices, but I need this specific feature, and since it's not working yet...)

LgS

@pcsantana
Copy link

Hi @schulti,
I think the reason this plugin has stopped working is because in newer versions of Cordova (v5 and later) the file used to ignore invalid ssl has changed. See http://ivancevich.me/articles/ignoring-invalid-ssl-certificates-on-cordova-android-ios/.

Considering your information that this plugin only works in xwalk 18, I found a work around after some tests. It's not so elegant, but worked for me:

cordova plugin add cordova-plugin-crosswalk-certificate
cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_VERSION="18+"

If you are using crosswalk lite, this should be ok. Otherwise, when building the project some errors will appear:

/myapp/platforms/android/src/org/crosswalk/engine/XWalkCordovaClientCertRequest.java:55: error: cannot find symbol return request.getKeyTypes(); ^ symbol: method getKeyTypes() location: variable request of type ClientCertRequest /myapp/platforms/android/src/org/crosswalk/engine/XWalkCordovaClientCertRequest.java:70: error: cannot find symbol return request.getPrincipals();

So, try to edit the class mentioned
(../platforms/android/src/org/crosswalk/engine/XWalkCordovaClientCertRequest.java) returning null instead request.getKeyTypes() and request.getPrincipals().

I'm using cordova 6.4.1 and cordova-plugin-crosswalk-webview v2.3.0.

Best regards!

@danjarvis
Copy link
Owner

My apologies for lack of communication on this. I'm not sure when I'll get time to roll out a proper fix.

Pull requests are welcome :)

@genXdev
Copy link

genXdev commented Mar 1, 2017

Kudos for those who fix this

@StefanNedelchev
Copy link

Any news on this issue? I'm still struggling with it and can't find any working solution

@mburger81
Copy link

Hi, is this project dead? Can someone provide a solution?

@eithed
Copy link

eithed commented Sep 22, 2017

I've had the same issue - removing standard, and installing lite version solved it for me (although with lite version WebGL stopped working).

Solution provided by @pcsantana still works

@NiketaBamta
Copy link

NiketaBamta commented Oct 5, 2017

I did the changes related to return null for getPrincipals(), getKeyTypes() methods.
Its not working with my wifi. But its working with mobile service providers. Can anyone tell what could be the prob ? I am getting this error while playing youtube video from my app.

@fmtoffolo
Copy link

Any updates regarding this issue?

Repository owner deleted a comment from Soumya6Tiwari Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants