Coder Social home page Coder Social logo

Comments (9)

anranstl avatar anranstl commented on June 21, 2024 1

Sorry for the late reply, add root CA of stream.launchdarkly.com will fix this issue, thank you very much.

from java-server-sdk.

eli-darkly avatar eli-darkly commented on June 21, 2024

Those aren't the hostnames that this SDK connects to; it uses sdk.launchdarkly.com, stream.launchdarkly.com, and events.launchdarkly.com. However, I'm 99% sure that all of the LD subdomains use the same root CA, so I'm not sure that that would explain it.

Would you mind instead filing a support ticket at support.launchdarkly.com ? The support team has more experience with troubleshooting issues like this which may involve details of your runtime environment - here you're just talking to the maintainers of the Java SDK code.

from java-server-sdk.

anranstl avatar anranstl commented on June 21, 2024

Hi, thank you very much, already raised a support ticket. This issue seems very common in java development, almost 99.9% solution suggest to add the certification from the using API address. so technically, it should work if I add CA from sdk.launchdarkly.com. will try again in our Linux server.

from java-server-sdk.

eli-darkly avatar eli-darkly commented on June 21, 2024

It is indeed a very common issue in Java development, but something seems not quite right here. What it's trying to find in the local keystore is not the certificate for the target host itself (like, sdk.launchdarkly.com), but rather the CA— the trusted certificate that the host's certificate relies on as an authority. And we don't have a different CA for each hostname; launchdarkly.com, app.launchdarkly.com, and sdk.launchdarkly.com all use the same CA as far as I can tell. If you already retrieved it and added it for any of those addresses, it should be working for all of them. So if it's not working, either something else is going on, or there was something wrong with the procedure you used.

from java-server-sdk.

eli-darkly avatar eli-darkly commented on June 21, 2024

Sorry, I was wrong: app.launchdarkly.com does have the same CA as sdk.launchdarkly.com; but launchdarkly.com, stream.launchdarkly.com, and events.launchdarkly.com do not. So I guess you will need to do it for each one after all.

from java-server-sdk.

anranstl avatar anranstl commented on June 21, 2024

oh, yeah, I noticed that when I added them to jks, already add them all, still no lucky.

from java-server-sdk.

eli-darkly avatar eli-darkly commented on June 21, 2024

OK... sorry, I'm not sure what's going on then, and I hope the support team can help.

from java-server-sdk.

eli-darkly avatar eli-darkly commented on June 21, 2024

Our SDK code doesn't do anything unusual regarding certificates. We are using the OkHttp client, and its default behavior is to use the default keystore and truststore provided by the JVM.

from java-server-sdk.

vaenuganti avatar vaenuganti commented on June 21, 2024

Hi - Could you please elaborate on how the issue was fixed. I am facing same issue.

from java-server-sdk.

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.