Certificate path - Trust anchor certification path not found
See original GitHub issueI’m trying to implement our own certificate into the project, but I can’t seem to get the path right.
Here’s all my info: Ionic 4.12.0 Cordova 8.1.2 Android 8.0.0
My package.json:
"cordova-plugin-advanced-http": {
"OKHTTP_VERSION": "3.10.0"
},
And
"cordova-plugin-advanced-http": "^2.1.1",
My config.xml:
<resource-file src="certificates/cert1.cer" target="app/src/main/assets/cert1.cer" />
<resource-file src="certificates/cert2.cer" target="app/src/main/assets/cert2.cer" />
<resource-file src="certificates/cert3.cer" target="app/src/main/assets/cert3.cer" />
My TypeScript:
this.http.setSSLCertMode('pinned').then(() => logger.debug("Disabled all CERTS valid"));
Error:
{“status”:-2,“error”:“TLS connection could not be established: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.”}
Can someone please help me with this?
Issue Analytics
- State:
- Created 4 years ago
- Comments:13
Top Results From Across the Web
Trust Anchor not found for Android SSL Connection
"The certificate is not signed by a trusted authority (checking against Mozilla's root store). If you bought the certificate from a trusted authority,...
Read more >[SOLVED]Android - Trust anchor for certification path not found
That error is usually due to a misconfigured certificate or a misconfiguration with the webserver config files as it relates to certificates… I ......
Read more >java.security.cert.CertPathValidatorException: Trust anchor for ...
CertPathValidatorException: Trust anchor for certification path not found. Hi. Facing issue on Device Android 6 version (Oppo F3). i am getting ...
Read more >Trust anchor for certification path not found · Issue #586 - GitHub
Open https://appr.tc with a browser. Click the lock icon, then you can see the detail of certification. You can find the url to...
Read more >Trust anchor for certification path not found on tracker capture ...
I have an error error:java.security.cert.CertPathValidatorException: Trust anchor for certification path not found on tracker capture app ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We have the same issue here. Please help
@Galiza, Great! But, I’m not still able to resolve it even after changing as above. Does the certificate in the root certificates folder have to be same as the server one? Or Self signed also works fine? In my case, my server certificate is also a self-signed one. Please let me know where I’m missing things!