Giter Club home page Giter Club logo

Comments (10)

zmstone avatar zmstone commented on July 4, 2024 1

@zmstone I don't think so, the default value of this option in the configuration file is also false.

We can change default value from backend, but frontend is independent implementation.

from emqx.

zmstone avatar zmstone commented on July 4, 2024 1

Here is my proposal.
In 5.8, we will only expose "verify peer" option in config and in dashboard, always force client to send certificate when "verify_peer".
For backward compatibility, we will hide fail_if_no_peer_cert from backend schema.

from emqx.

zmstone avatar zmstone commented on July 4, 2024 1

Here is my proposal. In 5.8, we will only expose "verify peer" option in config and in dashboard, always force client to send certificate when "verify_peer". For backward compatibility, we will hide fail_if_no_peer_cert from backend schema.

emmm What happens to listeners that had fail_if_no_peer_cert set to false?

it will be discarded

from emqx.

zmstone avatar zmstone commented on July 4, 2024

@ysfscream this is more of a frontend enhancement?

from emqx.

id avatar id commented on July 4, 2024

Why do we even have this option? Is there a scenario when a user may want to allow plain tcp connection on SSL port?

from emqx.

tigercl avatar tigercl commented on July 4, 2024

@zmstone I don't think so, the default value of this option in the configuration file is also false.

from emqx.

zmstone avatar zmstone commented on July 4, 2024

Why do we even have this option? Is there a scenario when a user may want to allow plain tcp connection on SSL port?

Good point.

from emqx.

tigercl avatar tigercl commented on July 4, 2024

@id When fail_if_no_peer_cert is false, the client still establishes a TLS connection to the server, it just won't be asked for a client certificate.

The only scenario I can think of is that all the user's clients access from the same TLS port, some of them provide client certificates for two-way authentication, and these clients will skip the password authentication of EMQX. The other part does not provide client certificates, after establishing a TLS connection, they must pass password authentication to actually access EMQX.

However, I think only HTTP authentication currently supports this process.

from emqx.

tigercl avatar tigercl commented on July 4, 2024

Here is my proposal. In 5.8, we will only expose "verify peer" option in config and in dashboard, always force client to send certificate when "verify_peer". For backward compatibility, we will hide fail_if_no_peer_cert from backend schema.

emmm What happens to listeners that had fail_if_no_peer_cert set to false?

from emqx.

qzhuyan avatar qzhuyan commented on July 4, 2024

Why do we even have this option? Is there a scenario when a user may want to allow plain tcp connection on SSL port?

Peer sending its cert is sometimes optional for TLS client (not limited to MQTT).

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.