A minimal client-server setup demonstrating the usage of MsQuic
.
- Windows 11 22H2 (tested on 22621.1992)
- OpenSSL (tested on 3.1.0 14)
- .NET 7 (tested on 7.0.9)
- Generate a certificate for the server:
cd .\QuicExample.Server\
openssl genrsa 2048 > private.key
openssl req -new -x509 -nodes -sha1 -days 1000 -key private.key > public.cer
openssl pkcs12 -export -in public.cer -inkey private.key -out cert_key.p12
- Run the server first:
cd .\QuicExample.Server\
dotnet run
- Run the server next:
cd .\QuicExample.Client\
dotnet run
- Expected results:
- The server prints
Ping
- The client prints
Pong