GithubHelp home page GithubHelp logo

each vhost https support about vhost HOT 2 CLOSED

expressjs avatar expressjs commented on May 22, 2024
each vhost https support

from vhost.

Comments (2)

kevinkassimo avatar kevinkassimo commented on May 22, 2024 1

Hi @shynome , I know this is closed issue, but I think using tlsSever.addContext() will allow you to configure SNI easily (another way is to use SNICallback). I also quickly implemented a minimal module vhttps that combines virtual host and SNI (although not strictly same as vhost's usage)

from vhost.

dougwilson avatar dougwilson commented on May 22, 2024

Hi @shynome , wow I just got the email that this was closed, but somehow missed when it was opened. The two solutions to your issue are:

  1. Use a certificate with a SAN that lists all those alternative domains. This makes the cert valids for all the domains at once, thus making the connection secure for all of them.
  2. Use SNI when you setup your Node.js HTTP server (Node.js supports SNI). This will allow you to keep using individual certs but through SNI the proper cert will be presented to the browser, keeping the connection secure.

I hope this helps!

As for the proposed idea, I'm not sure if that's possible to directly implement in this module, but if you have an idea for how to go about implementing it, always feel free to open a pull request with an implementation or even a written proposal if you're not sure where to start :) !

from vhost.

Related Issues (16)

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.