Skip to content

Instantly share code, notes, and snippets.

@xjdrew
xjdrew / client.go
Last active Sep 22, 2021
golang tls client and server, require and verify certificate in double direction
View client.go
package main
import (
"crypto/tls"
"crypto/x509"
"flag"
"io"
"io/ioutil"
"log"
"os"
@ncw
ncw / README.txt
Last active Aug 11, 2021 — forked from spikebike/client output
Client side certificates with go
View README.txt
This demonstrates how to make client side certificates with go
First generate the certificates with
./makecert.sh test@test.com
Run the server in one terminal
go run server.go