-
Enable the Kernel TLS on Linux.
sudo modprobe tls
-
Disable KTLS
# Disable the tls kernel module sudo modprobe -r tls
Disable KTLS in golang.
Set env
GOKTLS=0
, or omit it in the command. -
Run the server
GOKTLS=1 go run server.go
To print out the debug information, run with
-tags=debug
.GOKTLS=1 go run -tags=debug server.go
-
Run the client
GOKTLS=1 go run client.go
To print out the debug information, run with
-tags=debug
.GOKTLS=1 go run -tags=debug client.go
-
Run clients to test different ciphersuites and TLS versions.
GOKTLS=1 go run client_test_tls_config.go
To print out the debug information, run with
-tags=debug
.GOKTLS=1 go run -tags=debug client_test_tls_config.go
-
Notifications
You must be signed in to change notification settings - Fork 2
License
0-haha/gnet_tls_examples
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published