An open API service indexing awesome lists of open source software.

https://github.com/coin8086/winsocket

TLS Examples in Schannel and IO Completion Ports
https://github.com/coin8086/winsocket

iocp samples schannel socket tls windows

Last synced: about 1 year ago
JSON representation

TLS Examples in Schannel and IO Completion Ports

Awesome Lists containing this project

README

          

# TLS Examples in Schannel and IO Completion Ports

## Before You Run
You need a certificate for the server. The Subject Name of the certificate must be "localhost", and the certificate must be stored in the "My" store of the system's certificate store, in the "Local Machine". The certificate can be self issued but must not be expired.

## Simple Server and Client
Start echo server and write what received to stdout, which is redirected to file `svr-output` since client may send binary data.

```
SimpleSocketServer.exe -t 1>svr-output
```

Start client to send `file-to-send` to server, and write what server sent back to stdout, which is redirected to file `cli-output`.

```
SimpleSocketClient.exe localhost -t 1>cli-output cli-output test-$i