Giter Site home page Giter Site logo

Comments (4)

swells avatar swells commented on May 20, 2024

Hello,

Yes your explanation makes sense. Let us have a look in order to reproduce
and fix if need be.

  • Sean

On Thu, Aug 25, 2016 at 6:59 PM, Wayne Jenkins [email protected]
wrote:

If I use https then I get a scheme is not registered error because the
only way to add https as a permitted scheme is through use of a self-signed
certificate. It would be better if there was an option that allowed the use
of https (and then trusted a self-signed certificate if one was present).


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#9, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABSyP1SDgtUI0Hh8O1f_2fDBiHh2Ra0rks5qjkhvgaJpZM4Jtq6q
.

from java-client-library.

wjenkins1 avatar wjenkins1 commented on May 20, 2024

You can see the limitation in the RClientImpl.java. I cannot get https registered as a scheme unless I go via the self-signed route. I tried setting the flag but it didn't help. Cheers, Wayne.

    SchemeRegistry schemeRegistry = new SchemeRegistry();
    schemeRegistry.register(
        new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));

    if(allowSelfSignedSSLCert) {

...
}

from java-client-library.

wjenkins1 avatar wjenkins1 commented on May 20, 2024

BTW We are using RServer in the cloud motivating the use of https. Our self-signed certificate didn't work so we were forced to use a real certificate. The issue we have now is that it doesn't work either. I will hack a solution for now within the RClientImpl.java file but it would be good if it was resolved in the future. Https needs to be supported in general.

from java-client-library.

wjenkins1 avatar wjenkins1 commented on May 20, 2024

I added the following line to the code above.
schemeRegistry.register(new Scheme("https", SSLSocketFactory.getSocketFactory(), 443));

The POST works for submitting a task but I cannot get the result of the computation for similar reasons. I have put it in the too hard basket for now.

from java-client-library.

Related Issues (5)

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.