Giter Site home page Giter Site logo

java.security.cert.CertPathValidatorException (was ClassNotFoundException: org.andstatus.app.net.http.OAuthClientKeysSecret) about andstatus HOT 9 CLOSED

naturzukunft avatar naturzukunft commented on June 13, 2024
java.security.cert.CertPathValidatorException (was ClassNotFoundException: org.andstatus.app.net.http.OAuthClientKeysSecret)

from andstatus.

Comments (9)

yvolk avatar yvolk commented on June 13, 2024 1

And here we also see the certificate's issues: https://www.ssllabs.com/ssltest/analyze.html?d=dev.rdf-pub.org
"This server's certificate chain is incomplete."

from andstatus.

yvolk avatar yvolk commented on June 13, 2024

Hi @naturzukunft !
As I understand, you are building AndStatus yourself?!
The related doc https://github.com/andstatus/andstatus/blob/master/doc/DeveloperFAQ.md mentions the step: "Insert your application's private keys to the project: See "OAuthClientKeys.java" file for more information." The location of that file changed, it's here now: https://github.com/andstatus/andstatus/blob/master/app/src/main/kotlin/org/andstatus/app/net/http/OAuthClientKeys.kt

from andstatus.

yvolk avatar yvolk commented on June 13, 2024

Reading deeper I see that the stacktrace is of the "Verbose" level logging message. This means that you may ignore it as the "OAuthClientKeysSecret" class is NOT required.

from andstatus.

yvolk avatar yvolk commented on June 13, 2024

Further in the log file we see "URL: https://dev.rdf-pub.org/.well-known/oauth-authorization-server;
Caused by javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found."
This means that the site was signed by a "Certificate authority" that is not trusted by the client (by Android device...) or some other server misconfiguration (please search for the error message).
For the start I would open the URL by a browser and look up certificate info via it. - I did this now and couldn't get any response...

from andstatus.

naturzukunft avatar naturzukunft commented on June 13, 2024

As I understand, you are building AndStatus yourself?!

No, i'm using the app from fdroid i think.

image

from andstatus.

naturzukunft avatar naturzukunft commented on June 13, 2024
  • I did this now and couldn't get any response...

Hm, it's a lets encrypt certificate. I can browse it from my unix notebook.

image

from andstatus.

naturzukunft avatar naturzukunft commented on June 13, 2024

If i call the url from the same smartphone with firefox i get also a secure connection:

image

from andstatus.

yvolk avatar yvolk commented on June 13, 2024

I checked the address https://dev.rdf-pub.org/.well-known/oauth-authorization-server
using https://www.sslchecker.com/sslchecker
and got on my PC that the certificate is not trusted and I need to install some "chain"/"root" certs:

image

BTW, what you tested could be actually not secure connection...

from andstatus.

yvolk avatar yvolk commented on June 13, 2024

@naturzukunft See also related issues: #379 and this one: #208
BTW, AndStatus has "Insecure SSL" option in the "Social network" settings.

from andstatus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.