question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Certificate path - Trust anchor certification path not found

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
barbaldocommented, Feb 24, 2020

We have the same issue here. Please help

1reaction
mohammed-ghousecommented, Aug 7, 2019

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found