-
MattJ
lovetox, is there a bug report or something you can share?
-
lovetox
https://gitlab.gnome.org/GNOME/pygobject/-/issues/603
-
MattJ
Thanks
-
Link Mauve
Hi, I’m adding channel binding support for TLS 1.2, in which RFC are the TLS label and context defined?
-
Link Mauve
For TLS 1.3 that’s 9266 and it’s quite clear.
-
Zash
I'd look for references in the SCRAM and SASL RFCs
-
jonas’
Link Mauve, TLS unique: https://datatracker.ietf.org/doc/html/rfc5929
-
jonas’
ah, and the other stuff, too.
-
jonas’
Do I want to know what tls-unique-for-telnet is?
-
Zash
> For more discussions of channel bindings, and the syntax of channel > binding data for various security protocols, see [RFC5056].
-
Zash
ah, and > Clients SHOULD implement the "tls-unique" [RFC5929] channel binding type
-
Zash
jonas’, do you want your eyeballs happy?
-
Link Mauve
Is the unique prefix the label?
-
Link Mauve
Why is context not specified?
-
Zash
(I quoted RFC5802 fwiw)✎ -
Link Mauve
When I try that I receive an Err(Auth(Fail(NotAuthorized))) back.
-
Zash
(I quoted RFC5802 ftr) ✏
-
Zash
Link Mauve, hm?
-
Link Mauve
I’m trying with tls12.badxmpp.eu.
-
Link Mauve
Ah, with no context instead of an empty string context it seems to work!
-
Link Mauve
Hmm no, I always get NotAuthorized…
-
Zash
Well, you don't have an account there, do you?
-
Zash
Have I even made accounts there?
-
Link Mauve
But it always works, no matter the label I put, does that mean the channel binding is ignored in that case?
-
Zash
What do you mean by 'label' here?
-
Zash
And what does 'work' mean?
-
Link Mauve
tls_connection.export_keying_material(data, b"foo", Some(b"bar"))?
-
Link Mauve
Label is "foo", context is "bar".
-
Zash
Is that tls-unique?
-
Link Mauve
Using the terminology here: https://www.rfc-editor.org/rfc/rfc9266.html
-
Link Mauve
I am sending p=tls-unique,, yes.
-
Zash
I thought that was the Finsihed message, not TLS exporter anything
-
MattJ
Link Mauve, I can provide a server for testing if you want
-
Zash
Could set up well-known user/passwords on badxmpp.eu but disable resource binding, disconnect on sasl-success or something
-
Link Mauve
I could also disable TLS 1.3 in my library I guess.
-
Zash
TLS 1.3 with tls12.badxmpp.eu should not work
-
Link Mauve
Zash, could be nice indeed!
-
Link Mauve
Zash, but my library should fall back to TLS 1.2 if TLS 1.3 isn’t supported.
-
Zash
Link Mauve, badxmpp.eu runs the prosody stable version, there's no tls-exporter, I don't think that RFC and API is the thing
-
Zash
https://datatracker.ietf.org/doc/html/rfc5929#section-3
-
Zash
https://github.com/brunoos/luasec/blob/master/src/ssl.c#L706-L758 is what's used for tls-unique, while https://github.com/brunoos/luasec/blob/master/src/ssl.c#L760-L793 is what tls-exporter uses, completely different API