A demo application to run TLS/DTLS client & server.
./run.sh server
./run.sh client
TLSER_SERVER_HOST: default islocalhost, used to specify server hostname.TLSER_CLIENT_CIPHERS: comma separated cipher suite names. default "ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-RSA-AES256-GCM-SHA384"TLSER_MAX_FRAGMENT_LENTH: 512 | 1024 | 2048 | 4096
TLSER_LOG_LEVEL: set "debug" to make ssl lib print debug log level.TLSER_SERVER_PORT: default 9999, used to specify server port numberTLSER_PROTOCOL: set todtlsortls(default)TLSER_TLS_VERSIONS: comma separated verstions. e.g.1.1,1.2,1.3TLSER_CERT:path/to/certificates/dir, in the dir, there must be:- CA:
ca.pemfor both client and server. - Client:
client.key,client.pem - Server:
server.key,server.pem
- CA: