Coder Social home page Coder Social logo

Comments (10)

pweil- avatar pweil- commented on July 17, 2024

curl -k --resolve hello-openshift-coudapps.example.com:443:<your router ip> https://hello-openshift-coudapps.example.com

secure requires the SNI header to be sent, assuming your version of curl supports it (I think anything fairly recent will) that should work. If not, we can check out the routes

from training.

brenton avatar brenton commented on July 17, 2024

Hmm, that still isn't working for me. I'll dig deeper this morning:

# curl -k --resolve hello-openshift-coudapps.example.com:443:192.168.133.2 https://hello-openshift-coudapps.example.com
<html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>
~~

from training.

brenton avatar brenton commented on July 17, 2024

Looking at routes.json in the router container I see:

    "ServiceAliasConfigs": {
      "hello-openshift.cloudapps.example.com-": {
        "Host": "hello-openshift.cloudapps.example.com",
        "Path": "",
        "TLSTermination": "",
        "Certificates": null
      }
    }

Is this simply due to the fact our hello-openshift-route is not requesting TLS explicitly at creation time?

from training.

pweil- avatar pweil- commented on July 17, 2024

Yes, it looks like you only have a non-secure route defined. Here is an edge terminated route that you can use if you don't want to generate certs: https://github.com/pweil-/hello-nginx-docker/blob/master/openshift/edge/route.json

from training.

brenton avatar brenton commented on July 17, 2024

Thanks Paul!

from training.

thoraxe avatar thoraxe commented on July 17, 2024

So, I don't have this issue with my browser when I don't include the TLS stuff. the sinatra example worked with https just fine.

from training.

pweil- avatar pweil- commented on July 17, 2024

@thoraxe that is strange. Steps to reproduce? Also, did you previously have a TLS enabled route and then delete it? Perhaps it is an issue cleaning up the certs. If the cert was still laying around in the router and an https request came in it would be able to decrypt and pass it on (using the plain http backend assuming you have an unsecure route as well)

from training.

sdodson avatar sdodson commented on July 17, 2024

I'm not able to reproduce this. Both https and http work fine for me.

from training.

brenton avatar brenton commented on July 17, 2024

The original was likely something else wrong in my environment that I didn't have time to debug. I think the only remaining question is from @thoraxe's last comment. I'll let him close this issue whenever he wants.

from training.

thoraxe avatar thoraxe commented on July 17, 2024

Couldn't reproduce.

from training.

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.