ptrd / kwik

A QUIC client, client library and server implementation in Java. Supports HTTP3 with "Flupke" add-on.
GNU General Public License v3.0
390 stars 57 forks source link

Jaisocx compatibility adjustments #42

Closed jaisocx closed 2 months ago

jaisocx commented 5 months ago

On a single IP running h3 server instance, there can be served WebApps of many different domains. The requested by client, e.g. browser, domain is identified in TLS SNI extension of ClientHello TLS message to use proper TLS certificate with it.

I have for this a new class needed for using proper .jks file with domain name, pointed in SNI.

This Map should be loaded on server startup according to any specific config implementation. e.g. in jaisocx there is the xml config, where each domain node has text xml attributes with paths to the according .jks file. Xml reader loads .xml config, and fills this HashMap with proper domains names served on the IP, mapped to certs from the chain and private key.