Giter Club home page Giter Club logo

Comments (4)

qzhuyan avatar qzhuyan commented on June 26, 2024

maybe change error to info as SSL will search for cacert from OS dir with {cacerts, public_key:cacerts_get()}

from emqx.

tigercl avatar tigercl commented on June 26, 2024

@qzhuyan I think you mean that for two-way authentication, it is allowed not to explicitly set CACert, so that EMQX can find it from the OS dir and provide clear info logs.

For one-way authentication, CACert is not needed at all, and even if it is set, it will not be used, so there should be no logs, not even info level.

Do I understand correctly?

from emqx.

qzhuyan avatar qzhuyan commented on June 26, 2024

After I double checked, I think current behaviour is ok as in schema cacertfile is not required.
So if it is set, EMQX must find it otherwise error log it.

Other features like check the configuraiton combination of verify_peer, partial_chain and cacerts is new feature, there will be many branches, to me it is over engineering but let Product to decide if we really need it and study it first.

BTW, disabling verify_peer will not prevent TLS client sending its cert to EMQX according to standard, the client cert can be used in other subsystem like AUTHN but EMQX need to ensure the cert is readable from lower layer.

from emqx.

tigercl avatar tigercl commented on June 26, 2024

So if it is set, EMQX must find it otherwise error log it.

I agree that EMQX must ensure that the specified file exists.

But in the current implementation, even if I don't set the CA Cert, EMQX will try to find this file (I'm not sure what EMQX is looking for at this time), and then throw an error log.

Let me sort out my expectations:

  1. verify_peer is disabled, and CA Cert is not set, EMQX should not output error logs (Now it will)
  2. verify_peer is disabled, and CA Cert is set, EMQX will confirm whether the file exists and output an error log if it does not exist.
  3. verify_peer is enabled, CA Cert must be set, otherwise it will be considered an incorrect configuration.

1 and 3 are not the current behavior of EMQX.

from emqx.

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.