Skip to content

Instantly share code, notes, and snippets.

View sem-hub's full-sized avatar

Sergey Matveychuk sem-hub

  • Yandex
  • Moscow
View GitHub Profile
@xjdrew
xjdrew / client.go
Last active August 1, 2024 21:42
golang tls client and server, require and verify certificate in double direction
package main
import (
"crypto/tls"
"crypto/x509"
"flag"
"io"
"io/ioutil"
"log"
"os"