@@ -30,7 +30,7 @@ apt-get upgrade
3030apt-get install mono-complete
3131```
3232
33- # Build wolfSSL and install
33+ ### Build wolfSSL and install
3434
3535```
3636./autogen.sh
@@ -40,24 +40,42 @@ make check
4040sudo make install
4141```
4242
43- # Build and run the wrapper
43+ ### Build and run the wrapper
4444
4545```
4646cd wrapper/CSharp
47+ ```
48+
49+ Building the server:
50+ ```
51+ mcs wolfSSL_CSharp/wolfSSL.cs wolfSSL_CSharp/X509.cs \
52+ wolfSSL-TLS-Server/wolfSSL-TLS-Server.cs && \
53+ cp wolfSSL_CSharp/wolfSSL.exe ../../certs/server.exe
54+ ```
4755
56+ Building the client:
57+ ```
4858mcs wolfSSL_CSharp/wolfSSL.cs wolfSSL_CSharp/X509.cs \
49- wolfSSL-TLS-Server/wolfSSL-TLS-Server.cs
59+ wolfSSL-TLS-Server/wolfSSL-TLS-Server.cs && \
60+ cp wolfSSL_CSharp/wolfSSL.exe ../../certs/client.exe
5061```
5162
52- # Run the example
63+ ### Run the example
5364
65+ In one terminal instance run:
5466```
55- cp wolfSSL_CSharp/wolfSSL.exe ../../certs
5667cd ../../certs
57- mono wolfSSL.exe
68+ mono server.exe
69+ ```
70+
71+ And in another terminal instance run:
72+ ```
73+ cd ../../certs
74+ mono client.exe
75+ ```
5876
59- Calling ctx Init from wolfSSL
60- Finished init of ctx .... now load in cert and key
61- Ciphers : TLS13-AES128-GCM-SHA256:TLS13-AES256-GCM-SHA384:TLS13-CHACHA20-POLY1305-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-CHACHA20-POLY1305:DHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305-OLD:ECDHE-ECDSA-CHACHA20-POLY1305-OLD:DHE-RSA-CHACHA20-POLY1305-OLD
62- Started TCP and waiting for a connection
77+ ### Enabling SNI
78+ To enable SNI, just pass the ` -S ` argument with the specified hostname:
79+ ```
80+ mono client.exe -S hostname
6381```
0 commit comments