libp2p / specs

Technical specifications for the libp2p networking stack
https://libp2p.io
1.56k stars 273 forks source link

Add SNI to TLS spec #439

Closed MarcoPolo closed 2 years ago

MarcoPolo commented 2 years ago

Adds SNI to the TLS negotiation spec. Increments the minor version.

We need SNI for wss (secure websockets) to work and we should document its usage.

MarcoPolo commented 2 years ago

I'm closing this since I agree with Marten. This isn't the spot for the SNI field. This spec is around how we tie a peer id to a tls connection with the libp2p extension. What I'm trying to do is outside of that. And is a way to specify an SNI for a tls connection in general (not specific to this libp2p extension).

I think to better explain this I need to better explain multiaddrs and how we interpret them. That's a different document. I'll close this and start the "how we interpret multiaddr" doc.

Thanks for the feedback all