MQTTnet icon indicating copy to clipboard operation
MQTTnet copied to clipboard

Is there a way to get properities from the TLS sessions?

Open jimsch opened this issue 6 years ago • 5 comments

For security purposes, I want to get the tls-unique value from TLS connection? I am looking to either get the tls-unique value or some other value from the exporter so that it can be signed for security purposes.

jimsch avatar Jun 14 '19 05:06 jimsch

With 3.0.3 the client certificate is exposed to the connection validator. Is that solving your issue?

chkr1011 avatar Jun 22 '19 12:06 chkr1011

No. This is connection specific material and is not part of the certificate.

jimsch avatar Jun 24 '19 12:06 jimsch

No. This is connection specific material and is not part of the certificate. This is on HttpListener as of Net 4.6.1

jimsch avatar Jun 24 '19 12:06 jimsch

Sorry but this data is currently not available.

chkr1011 avatar Jun 24 '19 12:06 chkr1011

@jimsch you could have a look at https://github.com/chkr1011/MQTTnet/blob/2918be18c6c6529584cd1d78e09ebb3fc0819e4f/Source/MQTTnet.AspnetCore/

you maybe can create your own MqttConnectionContext/MqttConnectionHandler and expose / verify the details you need.

JanEggers avatar Oct 07 '19 12:10 JanEggers